summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 2b6b16e2..490dd05a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -918,7 +918,7 @@ sub register_local_packages {
$urpm->{fatal}(7, _("rpmtools package is too old, please upgrade it"));
}
}
- $error and die "error registering local packages";
+ $error and $urpm->{fatal}(1, _("error registering local packages"));
#- compute depslist associated.
$urpm->{params}->compute_depslist;
@@ -1020,7 +1020,7 @@ sub search_packages {
$best->{info}{release});
if ($_->{info}{serial} > $best->{info}{serial} || $cmp_version > 0 || $cmp_release > 0 ||
($_->{info}{serial} == $best->{info}{serial} && $cmp_version == 0 && $cmp_release == 0 &&
- better_arch($_->{info}{arch}, $best->{info}{arch}))) {
+ rpmtools::better_arch($_->{info}{arch}, $best->{info}{arch}))) {
$best = $_;
}
} else {