Commit 322d2569 authored by Bernhard Link's avatar Bernhard Link

fix bug extracting the Section and Priority from .diff files if control was...

fix bug extracting the Section and Priority from .diff files if control was not the first file in it.
parent d66b87db
......@@ -5,6 +5,8 @@
* changestool now supports looking into lzma files
(and bz2 files even when not compiled against libbz2), if
external uncompressors are available.
* fix bug extracting the Section and Priority from .diff
files if control was not the first file in it.
2009-02-23
* log notifiers get variables REPREPRO_CAUSING_RULE and
......
......@@ -342,9 +342,9 @@ static retvalue parsediff(struct compressedfile *f, /*@null@*/char **section_p,
/* if it does not always have the same directory, then
* we cannot be sure it has no debian/control, so we
* have to fail... */
s++;
if( s != p + destlength )
return RET_NOTHING;
s++;
}
/* found debian/control */
if( !u_getline() )
......
......@@ -302,6 +302,9 @@ Priority: required
Package: abinary
Architecture: all
EOF
cat > fake-1/debian/aaaaa <<EOF
also test debian/control not being the first file...
EOF
diff -ruN fake-1.orig fake-1 | lzma > fake_1-1.diff.lzma
rm -r fake-1 fake-1.orig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment