summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-29 15:46:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-29 15:46:25 +0000
commit50bfacb9170146abf3c11332cf509734d117a91f (patch)
tree6b07521f180be3ca940fdfa77fb2d5273a3cad19 /urpme
parentdf95f65347ad42a943b273e0bbaaf865826c93cc (diff)
downloadurpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar.gz
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar.bz2
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar.xz
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.zip
directly set $urpm->{root}, it's simpler
(also use it in urpm::get_pkgs::selected2list() even if callers didn't pass it)
Diffstat (limited to 'urpme')
-rw-r--r--urpme5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpme b/urpme
index b4f3e045..1ba39963 100644
--- a/urpme
+++ b/urpme
@@ -76,7 +76,7 @@ if ($< && !$test) {
#- rurpme checks
if ($restricted) {
- urpm::error_restricted($urpm) if $options{root} || $options{usedistrib} || $noscripts || $parallel;
+ urpm::error_restricted($urpm) if $urpm->{root} || $options{usedistrib} || $noscripts || $parallel;
}
unless ($test) {
@@ -87,7 +87,7 @@ unless ($test) {
my $_urpmi_lock = urpm::lock::urpmi_db($urpm);
urpm::media::configure($urpm,
synthesis => ($parallel ? 'none' : ''),
- root => $options{root},
+ root => $urpm->{root},
parallel => $parallel,
probe_with => $options{probe_with},
usedistrib => $options{usedistrib},
@@ -117,7 +117,6 @@ my @toremove = urpm::select::find_packages_to_remove($urpm,
#- Warning : the following message is parsed in urpm::parallel_*
$urpm->{error}(N("removing package %s will break your system", $_));
} 0 },
- root => $options{root},
) or $urpm->{fatal}(0, N("Nothing to remove"));
my $list = urpm::select::translate_why_removed($urpm, $state, @toremove);