1 --- incoming.c.orig 2009-06-11 10:48:27.000000000 +0200 |
|
2 +++ reprepro-3.5.2/incoming.c 2009-06-11 14:29:28.000000000 +0200 |
|
3 @@ -1854,6 +1854,8 @@ |
|
4 for( j = 0 ; j < i->files.count ; j ++ ) { |
|
5 const char *basename = i->files.values[j]; |
|
6 size_t l = strlen(basename); |
|
7 + char *fullfilename; |
|
8 + |
|
9 #define C_SUFFIX ".changes" |
|
10 #define C_LEN strlen(C_SUFFIX) |
|
11 if( l <= C_LEN || strcmp(basename+(l-C_LEN),C_SUFFIX) != 0 ) |
|
12 @@ -1861,7 +1863,16 @@ |
|
13 if( changesfilename != NULL && strcmp(basename, changesfilename) != 0 ) |
|
14 continue; |
|
15 /* a .changes file, check it */ |
|
16 + fullfilename = calc_dirconcat(i->directory, i->files.values[j]); |
|
17 + if( fullfilename == NULL ) { |
|
18 + result = RET_ERROR_OOM; |
|
19 + continue; |
|
20 + } |
|
21 + printf("processing changesfile '%s'\n", fullfilename); |
|
22 + fprintf(stderr, "processing changesfile '%s'\n", fullfilename); |
|
23 r = process_changes(database, dereferenced, i, j); |
|
24 + printf("changesfile '%s' done\n", fullfilename); |
|
25 + fprintf(stderr, "changesfile '%s' done\n", fullfilename); |
|
26 RET_UPDATE(result, r); |
|
27 } |
|
28 |
|