]> err.no Git - dpkg/commit
Dpkg::Source::Archive/Package: misc fixes and changes
authorRaphael Hertzog <hertzog@debian.org>
Thu, 28 Feb 2008 20:20:46 +0000 (21:20 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Thu, 28 Feb 2008 20:20:46 +0000 (21:20 +0100)
commit7319eee1972149becff531717bd396c798201e3c
treec58ff5c78507767da62baf0d81c9f26235590657
parentcba241650385456f4621e6eb693309820f9f7642
Dpkg::Source::Archive/Package: misc fixes and changes

* scripts/Dpkg/Source/Archive.pm: Replace unsafe rmtree() by
the safer erasedir() function.
* scripts/Dpkg/Source/Archive.pm (add_file, add_directory): Prefix
filename with chdir when the directory of the tar process isn't
the current directory.

* scripts/Dpkg/Source/Package.pm (find_original_tarballs): New
function to find original tarballs possibly associated to the current
source package.
* scripts/Dpkg/Source/Package.pm (add_file): Support adding file
who are not stored in the current directory (or who are prefixed with
"./").
* scripts/Dpkg/Source/Package.pm (can_build): New function to check
if a source package build is likely to succeed given the constraints
of a particular source package format. Will be used by dpkg-source to
find an appropriate format.
scripts/Dpkg/Source/Archive.pm
scripts/Dpkg/Source/Package.pm