]> err.no Git - dpkg/commit
Dpkg::Source::Package: Fix extract() and build() to clean up by default
authorRaphael Hertzog <hertzog@debian.org>
Thu, 28 Feb 2008 22:04:22 +0000 (23:04 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Thu, 28 Feb 2008 22:04:22 +0000 (23:04 +0100)
commitc9e1c6223fa73854e74d2e3a530946d769aa968b
tree68f6ab2ea00d52609b9938e162c76702405e046a
parent7319eee1972149becff531717bd396c798201e3c
Dpkg::Source::Package: Fix extract() and build() to clean up by default

* scripts/Dpkg/Source/Package.pm (extract, build): Change those methods
to delegate the real work to do_extract() and do_build() and catch
critical failures to clean up any temporary files/directories before
re-raising the error.
* scripts/Dpkg/Source/Package/V1_0.pm: Rename build() into do_build()
and extract() into do_extract().
scripts/Dpkg/Source/Package.pm
scripts/Dpkg/Source/Package/V1_0.pm