]> err.no Git - dpkg/commit
Allow inclusion of binary files outside of the debian subdirectory
authorRaphael Hertzog <hertzog@debian.org>
Tue, 18 Mar 2008 10:55:11 +0000 (11:55 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Tue, 18 Mar 2008 10:55:11 +0000 (11:55 +0100)
commit383c2803acef3821323048259119ef2cf01e5d83
treeff59c87c67de7ed3391fa73bd21bd239951ba63f
parent0c0057a27fecccab77d2b3cffa9a7d172846f0b4
Allow inclusion of binary files outside of the debian subdirectory

* scripts/Dpkg/ErrorHandling.pm (errormsg): New function displaying
an error message to stderr without dying.
* scripts/Dpkg/Source/Patch.pm (add_diff_file): Add a hook in the
handling of modified binary files. Don't fail unconditionnaly when a
binary file is detected. Return a value indicating if the diff
call succeeded.
(add_diff_directory): Don't display some warnings (that apply only to
files whose changes can be represented in diff) for modified
binary files.
(_fail_with_msg, _fail_not_same_type): Use new errormsg() function.
* scripts/Dpkg/Source/Package/V2_0.pm (do_extract): Extract the debian
tarball "in-place" so that it can contain other files besides the debian
sub-directory.
(do_build): Handle modified binary files. They are added to the debian
tarball if --include-binaries is used, or if they are whitelisted in
debian/source/include-binaries. The usage of --include-binaries will
modify debian/source/include-binaries if needed.
* man/dpkg-source.1: Update manual page accordingly.
man/dpkg-source.1
scripts/Dpkg/ErrorHandling.pm
scripts/Dpkg/Source/Package/V2_0.pm
scripts/Dpkg/Source/Patch.pm