summaryrefslogtreecommitdiff
path: root/scripts/dpkg-checkbuilddeps.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-10-02 04:41:49 +0200
committerGuillem Jover <guillem@debian.org>2011-10-02 07:43:10 +0200
commit1ead1540e44e6ab39e4d4f917a81e0274b8a123b (patch)
tree92bc44a040cfbaf8cb948b79635815b1493455b8 /scripts/dpkg-checkbuilddeps.pl
parent5e221771128bfe7a1de87a87d94f6774047bf5dd (diff)
downloaddpkg-1ead1540e44e6ab39e4d4f917a81e0274b8a123b.tar.gz
scripts: Use error() or syserr() instead of die
This gives unified error messages.
Diffstat (limited to 'scripts/dpkg-checkbuilddeps.pl')
-rwxr-xr-xscripts/dpkg-checkbuilddeps.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dpkg-checkbuilddeps.pl b/scripts/dpkg-checkbuilddeps.pl
index 31b7ee650..017e16ee0 100755
--- a/scripts/dpkg-checkbuilddeps.pl
+++ b/scripts/dpkg-checkbuilddeps.pl
@@ -117,7 +117,7 @@ sub parse_status {
my $facts = Dpkg::Deps::KnownFacts->new();
local $/ = '';
- open(STATUS, "<$status") || die "$status: $!\n";
+ open(STATUS, "<$status") || syserr(_g("cannot open %s"), $status);
while (<STATUS>) {
next unless /^Status: .*ok installed$/m;