summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-11-21 15:33:18 +0000
committerFrancois Pons <fpons@mandriva.com>2001-11-21 15:33:18 +0000
commitdf1bbab41f0bd42e82b3670b9d2e9a15ee4139f3 (patch)
treebdb25d7436cab31cd5735fce194b747002d7d9b1 /urpmq
parentf855ead59ddb8728b9af87a6a7f400871b70d224 (diff)
downloadurpmi-df1bbab41f0bd42e82b3670b9d2e9a15ee4139f3.tar
urpmi-df1bbab41f0bd42e82b3670b9d2e9a15ee4139f3.tar.gz
urpmi-df1bbab41f0bd42e82b3670b9d2e9a15ee4139f3.tar.bz2
urpmi-df1bbab41f0bd42e82b3670b9d2e9a15ee4139f3.tar.xz
urpmi-df1bbab41f0bd42e82b3670b9d2e9a15ee4139f3.zip
small fixes.
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmq b/urpmq
index 63a66c13..dcd69f8c 100755
--- a/urpmq
+++ b/urpmq
@@ -124,6 +124,7 @@ $urpm->search_packages(\%packages, [ @names ], use_provides => $query->{use_prov
if ($query->{auto_select}) {
my (%to_remove, %keep_files);
+ $query->{update} or $urpm->read_config(nocheck_access => 1);
$urpm->select_packages_to_upgrade('', \%packages, \%to_remove, \%keep_files);
if (keys(%to_remove) > 0) {
@@ -134,7 +135,7 @@ if ($query->{auto_select}) {
#- filter to add in packages selected required packages.
if ($query->{minimal}) {
$query->{use_provides} || @files or $urpm->read_provides;
- $query->{update} or $urpm->read_config(nocheck_access => 1);
+ $query->{update} || $query->{auto_select} or $urpm->read_config(nocheck_access => 1);
$urpm->filter_minimal_packages_to_upgrade(\%packages, undef);
} else {
$query->{deps} && !$query->{upgrade} and $urpm->compute_closure(\%packages);