diff options
author | Guillem Jover <guillem@debian.org> | 2011-10-02 04:41:49 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-10-02 07:43:10 +0200 |
commit | 1ead1540e44e6ab39e4d4f917a81e0274b8a123b (patch) | |
tree | 92bc44a040cfbaf8cb948b79635815b1493455b8 /scripts/dpkg-checkbuilddeps.pl | |
parent | 5e221771128bfe7a1de87a87d94f6774047bf5dd (diff) | |
download | dpkg-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-x | scripts/dpkg-checkbuilddeps.pl | 2 |
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; |