summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem/perl_build.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-04 13:20:31 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-04 13:20:31 -0400
commitd2be218a4b4a5e2e25659db1e5438b0fca6b83e0 (patch)
tree99458aa3aa435424cadb66a933ad11d1d277d313 /Debian/Debhelper/Buildsystem/perl_build.pm
parentb959c36c0a29272de3199b0c87d1058abd71eadb (diff)
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
Diffstat (limited to 'Debian/Debhelper/Buildsystem/perl_build.pm')
-rw-r--r--Debian/Debhelper/Buildsystem/perl_build.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm
index caba9b75..88bcff58 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