diff options
author | Francois Pons <fpons@mandriva.com> | 2003-12-14 10:58:09 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-12-14 10:58:09 +0000 |
commit | 7a78d478b9efd6d771a716351b1b2617281c252a (patch) | |
tree | 7332ba23a7ee0b602e31b751f3ab483d1d4de6c5 | |
parent | b3de50154ae08824a1f96ada67d49f0f81b8cbc9 (diff) | |
download | urpmi-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-x | urpmi | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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). |