summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.