summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-12-14 10:58:09 +0000
committerFrancois Pons <fpons@mandriva.com>2003-12-14 10:58:09 +0000
commit7a78d478b9efd6d771a716351b1b2617281c252a (patch)
tree7332ba23a7ee0b602e31b751f3ab483d1d4de6c5
parentb3de50154ae08824a1f96ada67d49f0f81b8cbc9 (diff)
downloadurpmi-7a78d478b9efd6d771a716351b1b2617281c252a.tar
urpmi-7a78d478b9efd6d771a716351b1b2617281c252a.tar.gz
urpmi-7a78d478b9efd6d771a716351b1b2617281c252a.tar.bz2
urpmi-7a78d478b9efd6d771a716351b1b2617281c252a.tar.xz
urpmi-7a78d478b9efd6d771a716351b1b2617281c252a.zip
added --no-priority-upgrade to avoid any loops.
-rwxr-xr-xurpmi4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index f94508cb..0d155941 100755
--- a/urpmi
+++ b/urpmi
@@ -168,6 +168,7 @@ while (defined($_ = shift @argv)) {
/^--noclean$/ and do { $clean = $urpm->{options}{'pre-clean'} = $urpm->{options}{'post-clean'} = 0; $noclean = 1; next };
/^--(no-)?pre-clean$/ and do { $urpm->{options}{'pre-clean'} = !$1; next };
/^--(no-)?post-clean$/ and do { $urpm->{options}{'post-clean'} = !$1; next };
+ /^--no-priority-upgrade$/ and do { $urpm->{options}{'priority-upgrade'} = ''; next };
/^--force$/ and do { $force = 1; next };
/^--allow-nodeps$/ and do { $urpm->{options}{'allow-nodeps'} = 1; next };
/^--allow-force$/ and do { $urpm->{options}{'allow-force'} = 1; next };
@@ -783,7 +784,8 @@ if ($restart_itself && !$exit_code) {
message(N("restarting urpmi"), 'noX');
#- it seems to work correctly with exec instead of system, provided
#- STDOUT or STDERR are not closed before (else no output at all).
- exec "/usr/sbin/urpmi", @ARGV;
+ #- added --no-priority-upgrade to make sure no restart will be done after this one.
+ exec "/usr/sbin/urpmi", '--no-priority-upgrade', @ARGV;
}
#- this help flushing correctly by closing this file before (piped on tee).