summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-27 11:38:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-27 11:38:11 +0000
commitb494812daced7acbb49aaf27671cde8a4f055b7e (patch)
treec8be06534263a1f3d99723ba7a2dd836caa3d173 /urpm/select.pm
parent58ee3cbcf2b07a7538b3265605d1effa6823d9da (diff)
downloadurpmi-b494812daced7acbb49aaf27671cde8a4f055b7e.tar
urpmi-b494812daced7acbb49aaf27671cde8a4f055b7e.tar.gz
urpmi-b494812daced7acbb49aaf27671cde8a4f055b7e.tar.bz2
urpmi-b494812daced7acbb49aaf27671cde8a4f055b7e.tar.xz
urpmi-b494812daced7acbb49aaf27671cde8a4f055b7e.zip
simplify: instead of passing around {rpmdb}, set $urpm->{env_rpmdb} and use it
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index c780b932..f816bbb7 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -229,7 +229,6 @@ sub _search_packages_keep_best {
#- The return value is true if program should be restarted (in order to take
#- care of important packages being upgraded (priority upgrades)
#- %options :
-#- rpmdb
#- auto_select
#- install_src
#- priority_upgrade
@@ -248,7 +247,7 @@ sub resolve_dependencies {
require urpm::parallel; #- help perl_checker;
urpm::parallel::resolve_dependencies($urpm, $state, $requested, %options);
} else {
- my $db = urpm::db_open_or_die__($urpm, $options{rpmdb});
+ my $db = urpm::db_open_or_die_($urpm);
my $sig_handler = sub { undef $db; exit 3 };
local $SIG{INT} = $sig_handler;
@@ -261,7 +260,7 @@ sub resolve_dependencies {
);
}
- if ($options{priority_upgrade} && !$options{rpmdb}) {
+ if ($options{priority_upgrade} && !$urpm->{env_rpmdb}) {
#- first check if a priority_upgrade package is requested
#- (it should catch all occurences in --auto-select mode)
#- (nb: a package "foo" may appear twice, and only one will be set flag_upgrade)