]> err.no Git - dpkg/commit
dpkg-source (2.0/3.0 (quilt)): refuse binary files in debian subdir
authorRaphael Hertzog <hertzog@debian.org>
Thu, 8 May 2008 17:12:23 +0000 (19:12 +0200)
committerRaphael Hertzog <hertzog@debian.org>
Thu, 8 May 2008 18:26:51 +0000 (20:26 +0200)
commit62a1700ddb370966bfe34820a6c0dd6603d46a45
treeae7b3029ab2604c4082e3611b0e318ba02cc3daf
parentebaea3f6847d910ba958c26160a55ec70f861625
dpkg-source (2.0/3.0 (quilt)): refuse binary files in debian subdir

* scripts/Dpkg/Source/Functions.pm (is_binary): New function
to check if a file is binary by using diff against it.
* scripts/Dpkg/Source/Package/V2.pm (do_build): Check that all files from
the debian sub-directory are non-binary and only allow whitelisted binary
files.
* man/dpkg-source.1: Document this behaviour.
ChangeLog
debian/changelog
man/dpkg-source.1
scripts/Dpkg/Source/Functions.pm
scripts/Dpkg/Source/Package/V2.pm