summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--urpm/args.pm7
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 63e836cb..187b73fd 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@
o wrap big messages (mga#5118)
- library:
o enhanced doc
+- urpm[fq]:
+ o make --use-distrib works as user (mga#1225)
Version 7.8.3 - 04 October 2012, by Thierry Vignaud
diff --git a/urpm/args.pm b/urpm/args.pm
index 66766033..41201558 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -169,7 +169,12 @@ my %options_spec = (
'skip=s' => \$options{skip},
'prefer=s' => \$options{prefer},
'root=s' => sub { set_root($urpm, $_[1]) },
- 'use-distrib=s' => \$options{usedistrib},
+ 'use-distrib=s' => sub {
+ $options{usedistrib} = $_[1];
+ return if !$>;
+ $urpm->{cachedir} = $urpm->valid_cachedir;
+ $urpm->{statedir} = $urpm->valid_statedir;
+ },
'probe-synthesis' => sub { $options{probe_with} = 'synthesis' },
'probe-hdlist' => sub { $options{probe_with} = 'synthesis' }, #- ignored, kept for compatibility
'excludepath|exclude-path=s' => sub { $urpm->{options}{excludepath} = $_[1] },