diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-29 15:46:25 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-29 15:46:25 +0000 |
commit | 50bfacb9170146abf3c11332cf509734d117a91f (patch) | |
tree | 6b07521f180be3ca940fdfa77fb2d5273a3cad19 /urpm/media.pm | |
parent | df95f65347ad42a943b273e0bbaaf865826c93cc (diff) | |
download | urpmi-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 'urpm/media.pm')
-rw-r--r-- | urpm/media.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index 217b6cd3..d2134128 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -442,7 +442,7 @@ sub write_config { #- read urpmi.cfg file as well as necessary synthesis files #- options : -#- root +#- root (deprecated, set directly $urpm->{root}) #- cmdline_skiplist #- nocheck_access (used by read_config) #- @@ -479,7 +479,7 @@ sub configure { } } else { #- nb: can't have both parallel and root - $urpm->{root} = $options{root}; + $urpm->{root} = $options{root} if $options{root}; } $urpm->{root} && ! -c "$urpm->{root}/dev/null" |