summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-02 14:39:35 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-02 14:39:35 +0000
commitee6321411cb4993bb4d165653e7b032247d2d379 (patch)
tree36377194b40c6e882fe179b2b73b56e28ed6b003
parent77b03c95a1f5f69e5f9c40c1deeb89948192ce43 (diff)
downloadurpmi-ee6321411cb4993bb4d165653e7b032247d2d379.tar
urpmi-ee6321411cb4993bb4d165653e7b032247d2d379.tar.gz
urpmi-ee6321411cb4993bb4d165653e7b032247d2d379.tar.bz2
urpmi-ee6321411cb4993bb4d165653e7b032247d2d379.tar.xz
urpmi-ee6321411cb4993bb4d165653e7b032247d2d379.zip
Forbid --curl-options and friends in rurpmi
-rwxr-xr-xurpmi4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index d96c5d21..92dff332 100755
--- a/urpmi
+++ b/urpmi
@@ -199,7 +199,9 @@ if ($restricted) {
foreach (qw(keep verify-rpm norebuild)) { $urpm->{options}{$_} = 1 }
#- forbid some other options
urpm::error_restricted($urpm) if $root || $usedistrib || $force || $env || $parallel || $synthesis || $nolock;
- foreach (qw(allow-nodeps allow-force)) { urpm::error_restricted($urpm) if $urpm->{options}{$_} }
+ foreach (qw(allow-nodeps allow-force curl-options rsync-options wget-options)) {
+ urpm::error_restricted($urpm) if $urpm->{options}{$_};
+ }
}
#- prepare bug report.