Package: reprepro
Version: 4.8.2-1
Tags: patch

When running the 'processincoming' command to import a non-signed
.changes file, the message

 Data seems not to be signed trying to use directly...

was included in the command ouput in version in reprepro 4.5.x.
Since 4.6.x it is not displayed anymore. This seems to be a
regression, the attached patch fixes it.
Index: reprepro-4.8.2/signature.c
===================================================================
--- reprepro-4.8.2.orig/signature.c	2011-12-09 10:44:44.032200314 +0100
+++ reprepro-4.8.2/signature.c	2011-12-09 10:45:04.900200290 +0100
@@ -742,8 +742,8 @@
 
 	/* fast-track unsigned chunks: */
 	if (startofchanges[0] != '-' && *afterchanges == '\0') {
-		if (verbose > 5 && strncmp(startofchanges, "Format:", 7) != 0
-				&& strncmp(startofchanges, "Source:", 7) != 0)
+		if (verbose > 5 && (strncmp(startofchanges, "Format:", 7) != 0
+				|| strncmp(startofchanges, "Source:", 7) != 0))
 			fprintf(stderr,
 "Data seems not to be signed trying to use directly...\n");
 		len = chunk_extract(chunk, chunk, &afterchunk);

Reply via email to