diff options
author | joey <joey> | 2002-02-09 22:39:19 +0000 |
---|---|---|
committer | joey <joey> | 2002-02-09 22:39:19 +0000 |
commit | 8e0691a21799ddf303419876e0681df88cfcf56e (patch) | |
tree | 2d37dc5060e96c80df3a101c83c7ea38bbf55537 /Debian | |
parent | 5ed0df5cddd3bb2a52ca52d508409e09669af03e (diff) | |
download | debhelper-8e0691a21799ddf303419876e0681df88cfcf56e.tar.gz |
r509: * dh_perl: don't gripe if there is no substvar file. Closes: #133140
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index ea4046a3..a909335b 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -367,8 +367,10 @@ sub delsubstvar { my $ext=pkgext($package); my $substvarfile="debian/${ext}substvars"; - complex_doit("grep -v '^${substvar}=' $substvarfile > $substvarfile.new || true"); - doit("mv", "$substvarfile.new","$substvarfile"); + if (-e $substvarfile) { + complex_doit("grep -v '^${substvar}=' $substvarfile > $substvarfile.new || true"); + doit("mv", "$substvarfile.new","$substvarfile"); + } } # Adds a dependency on some package to the specified |