added messages when beginning and finishing processing a changes file
authorMatthias Förste <foerste@schlittermann.de>
Thu, 16 Jul 2009 12:46:57 +0200
changeset 1 8d32753c0599
parent 0 03e1f1f18653
child 2 21c93a4387f7
added messages when beginning and finishing processing a changes file
reprepro/3.5.2/changes-file-process-messages.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/reprepro/3.5.2/changes-file-process-messages.patch	Thu Jul 16 12:46:57 2009 +0200
@@ -0,0 +1,28 @@
+--- incoming.c.orig
++++ incoming.c
+@@ -1854,6 +1854,8 @@
+ 	for( j = 0 ; j < i->files.count ; j ++ ) {
+ 		const char *basefilename = i->files.values[j];
+ 		size_t l = strlen(basefilename);
++		char *fullfilename;
++
+ #define C_SUFFIX ".changes"
+ #define C_LEN strlen(C_SUFFIX)
+ 		if( l <= C_LEN ||
+@@ -1861,7 +1863,16 @@
+ 		if( changesfilename != NULL && strcmp(basefilename, changesfilename) != 0 )
+ 			continue;
+ 		/* a .changes file, check it */
++		fullfilename = calc_dirconcat(i->directory, i->files.values[j]);
++		if( fullfilename == NULL ) {
++			result = RET_ERROR_OOM;
++			continue;
++		}
++		printf("processing changesfile '%s'\n", fullfilename);
++		fprintf(stderr, "processing changesfile '%s'\n", fullfilename);
+ 		r = process_changes(database, i, j);
++		printf("changesfile '%s' done\n", fullfilename);
++		fprintf(stderr, "changesfile '%s' done\n", fullfilename);
+ 		RET_UPDATE(result, r);
+ 	}
+