chiark / gitweb /
Fix up .orig detection to be less trustful of (ambiguous) filenames.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Oct 2016 12:19:54 +0000 (13:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Oct 2016 15:02:44 +0000 (16:02 +0100)
commit68db28cfe420b28f3259f1048fa05cbfb903baa7
treec74125fcb9dcf1cb118e8632750c39d84c86e57f
parente4942960b8725f17f78c4d4113aea34958bb42ee
Fix up .orig detection to be less trustful of (ambiguous) filenames.

We cannot simply match the filenaem because `foo_1.0.orig.tar.gz'
might be the `.orig.tar.gz' of foo version 1.0, or the `.tar.gz' of
foo version 1.0.orig.

We need either to consider the whole .dsc (this works since the
formats with no `.orig' or `.debian' or whatever are precisely ones
where there is only one file anyway), or know the version number.

Replace is_orig_file with two functions, one for each situation.

While we're here, do not barf if we find uncompressed tarballs.  (We
don't expect to find any but it would be nice if they worked...)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit