summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-02-24 15:36:06 +0000
committerFrancois Pons <fpons@mandriva.com>2003-02-24 15:36:06 +0000
commita7fcf9a502396358d2742eb9ea42f989ed5c6889 (patch)
treed98a77b8eb6e0dfebcfd0d2dd88c7cf09a3a2b4b /urpm.pm
parentd486a9d35b0f3fd030438938c713138ff838e015 (diff)
downloadurpmi-a7fcf9a502396358d2742eb9ea42f989ed5c6889.tar
urpmi-a7fcf9a502396358d2742eb9ea42f989ed5c6889.tar.gz
urpmi-a7fcf9a502396358d2742eb9ea42f989ed5c6889.tar.bz2
urpmi-a7fcf9a502396358d2742eb9ea42f989ed5c6889.tar.xz
urpmi-a7fcf9a502396358d2742eb9ea42f989ed5c6889.zip
4.2-23mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index acdc958e..dd454f50 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -847,7 +847,7 @@ sub configure {
local $SIG{QUIT} = $sig_handler;
local *RPMDB;
- $db or $urpm->{fatal}(_("unable to open rpmdb"));
+ $db or $urpm->{fatal}(9, _("unable to open rpmdb"));
open RPMDB, "| " . ($ENV{LD_LOADER} || '') . " gzip -9 >'$options{bug}/rpmdb.cz'";
$db->traverse(sub {
my ($p) = @_;
@@ -2014,7 +2014,7 @@ sub resolve_dependencies {
$db->parse_synthesis($options{rpmdb});
} else {
$db = URPM::DB::open($urpm->{root});
- $db or $urpm->{fatal}(_("unable to open rpmdb"));
+ $db or $urpm->{fatal}(9, _("unable to open rpmdb"));
}
my $sig_handler = sub { undef $db; exit 3 };
@@ -2430,7 +2430,7 @@ sub install {
my ($urpm, $remove, $install, $upgrade, %options) = @_;
my $db = URPM::DB::open($urpm->{root}, !$options{test}); #- open in read/write mode unless testing installation.
- $db or $urpm->{fatal}(_("unable to open rpmdb"));
+ $db or $urpm->{fatal}(9, _("unable to open rpmdb"));
my $trans = $db->create_transaction($urpm->{root});
my ($update, @l, %file2pkg) = 0;
@@ -2514,7 +2514,7 @@ sub find_packages_to_remove {
my $db = URPM::DB::open($options{root});
my (@m, @notfound);
- $db or $urpm->{fatal}(_("unable to open rpmdb"));
+ $db or $urpm->{fatal}(9, _("unable to open rpmdb"));
if (!$options{matches}) {
foreach (@$l) {