From d2be218a4b4a5e2e25659db1e5438b0fca6b83e0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 4 Aug 2009 13:20:31 -0400 Subject: [PATCH] perl_build: Avoid failing if forced to be used in dh_auto_clean when Build does not exist (ie due to being run twice in a row). Closes: #539848 --- Debian/Debhelper/Buildsystem/perl_build.pm | 4 +++- debian/changelog | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm index caba9b7..88bcff5 100644 --- a/Debian/Debhelper/Buildsystem/perl_build.pm +++ b/Debian/Debhelper/Buildsystem/perl_build.pm @@ -61,7 +61,9 @@ sub install { sub clean { my $this=shift; - $this->do_perl("Build", "--allow_mb_mismatch", 1, "distclean", @_); + if (-f "Build") { + $this->do_perl("Build", "--allow_mb_mismatch", 1, "distclean", @_); + } } 1 diff --git a/debian/changelog b/debian/changelog index 2066709..9fa71cf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (7.3.10) UNRELEASED; urgency=low + + * perl_build: Avoid failing if forced to be used in dh_auto_clean + when Build does not exist (ie due to being run twice in a row). + Closes: #539848 + + -- Joey Hess Tue, 04 Aug 2009 13:19:31 -0400 + debhelper (7.3.9) unstable; urgency=low * cmake: Avoid forcing rpath off as this can break some test suites. -- 2.39.2