summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-06-14 16:04:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-06-14 16:04:16 +0000
commit43d6b89e89573594f2db899b9c5e4005578f726e (patch)
tree6a6db4a27747c6c0acf5a61da9b694a788160229 /urpm
parent9dd64b200697efbea215d283655c7dfe852271dd (diff)
downloadurpmi-43d6b89e89573594f2db899b9c5e4005578f726e.tar
urpmi-43d6b89e89573594f2db899b9c5e4005578f726e.tar.gz
urpmi-43d6b89e89573594f2db899b9c5e4005578f726e.tar.bz2
urpmi-43d6b89e89573594f2db899b9c5e4005578f726e.tar.xz
urpmi-43d6b89e89573594f2db899b9c5e4005578f726e.zip
- urpmq
o allow using --use-distrib as non-root nb: reverting commit r15208 2005-10-12 "Forbid urpmq --use-distrib when non root" since i can't see any valid reason for this
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 62786b7a..831facd3 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -238,13 +238,6 @@ my %options_spec = (
sources => \$options{sources},
force => \$options{force},
'skip=s' => \$options{skip},
- 'use-distrib=s' => sub {
- if ($< != 0) {
- print STDERR N("You need to be root to use --use-distrib"), "\n";
- exit 1;
- }
- $options{usedistrib} = $_[1];
- },
'parallel=s' => \$options{parallel},
'env=s' => \$options{env},
d => \$options{deps},
@@ -368,7 +361,7 @@ foreach my $k ("help|h", "version", "no-locales", "test!", "force", "root=s", "u
{
$options_spec{urpme}{$k} = $options_spec{urpmi}{$k};
}
-foreach my $k ("root=s", "nolock")
+foreach my $k ("root=s", "nolock", "use-distrib=s")
{
$options_spec{urpmq}{$k} = $options_spec{urpmi}{$k};
}