summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-29 02:46:31 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-29 02:46:31 +0000
commitacf4d7805b5be2d13d1f47c577d5cf0e3f462e72 (patch)
treedde5e9b95368c6390245cb46ffbdca7fc532446e
parent999a07db7b69bfffb350ed0c439f7ea3deb2a14c (diff)
downloadurpmi-acf4d7805b5be2d13d1f47c577d5cf0e3f462e72.tar
urpmi-acf4d7805b5be2d13d1f47c577d5cf0e3f462e72.tar.gz
urpmi-acf4d7805b5be2d13d1f47c577d5cf0e3f462e72.tar.bz2
urpmi-acf4d7805b5be2d13d1f47c577d5cf0e3f462e72.tar.xz
urpmi-acf4d7805b5be2d13d1f47c577d5cf0e3f462e72.zip
Remove useless line
-rwxr-xr-xurpmi3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index d9de5ab4..52aa1fd2 100755
--- a/urpmi
+++ b/urpmi
@@ -188,11 +188,12 @@ if ($install_src) {
#- rurpmi checks
if ($restricted) {
urpm::error_restricted($urpm) if @src_files || @files;
+ #- force some options
$urpm->{options}{keep} = 1;
$urpm->{options}{'verify-rpm'} = 1;
+ #- forbid some other options
urpm::error_restricted($urpm) if $::root || $::usedistrib || $::force || $::env || $::parallel;
foreach (qw(allow-nodeps allow-force)) { urpm::error_restricted($urpm) if $urpm->{options}{$_} }
- foreach (qw(verify-rpm)) { urpm::error_restricted($urpm) unless $urpm->{options}{$_} }
}
#- prepare bug report.