diff options
author | Colin Guthrie <colin@mageia.org> | 2013-05-19 10:13:15 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-05-19 10:13:15 +0000 |
commit | 1921dc5d4396fe0e71bf0c34ebd26c09875b3f91 (patch) | |
tree | 39d47843d2f438c1d9cd4f3c85faa6637294e400 /mgaapplet-upgrade-helper | |
parent | 947178d6cf84d2da9c1462461ed0ee6dadd1cfe3 (diff) | |
download | mgaonline-1921dc5d4396fe0e71bf0c34ebd26c09875b3f91.tar mgaonline-1921dc5d4396fe0e71bf0c34ebd26c09875b3f91.tar.gz mgaonline-1921dc5d4396fe0e71bf0c34ebd26c09875b3f91.tar.bz2 mgaonline-1921dc5d4396fe0e71bf0c34ebd26c09875b3f91.tar.xz mgaonline-1921dc5d4396fe0e71bf0c34ebd26c09875b3f91.zip |
Do not handle priority upgrades specially. This is now fixed in urpmi itself
Diffstat (limited to 'mgaapplet-upgrade-helper')
-rwxr-xr-x | mgaapplet-upgrade-helper | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper index d2db06cd..a5f19e9b 100755 --- a/mgaapplet-upgrade-helper +++ b/mgaapplet-upgrade-helper @@ -99,15 +99,9 @@ sub run_gurpmi() { my $succeeded_win = create_upgrade_succeeded_window(); my $failed_win = create_upgrade_failed_window(); - # Handle the priority upgrades first - # We need to ensure the initial upgrade of rpm+urpmi is done in one - # transaction (hense --split-length=0) as otherwise the rpmdb indexes can be - # rebuilt with the wrong libdb version - fork_gurpmi('--split-length=0', 'rpm', 'urpmi'); - while ($refork_gurpmi) { - my $ok = fork_gurpmi('--auto-select'); + my $ok = fork_gurpmi(); if ($refork_gurpmi && !$ok) { $refork_gurpmi--; } else { @@ -329,10 +323,9 @@ packages as well?).")) sub fork_gurpmi { run_program::raw({ timeout => 'never' }, - 'gurpmi', '>>', $log_file, '2>>', $log_file, '--auto', '--replacefiles', '--clean', + 'gurpmi', '>>', $log_file, '2>>', $log_file, '--auto', '--auto-select', '--replacefiles', '--clean', if_($root, "--urpmi-root=$root"), - if_($download_dir, "--download-all=$download_dir"), - @_); + if_($download_dir, "--download-all=$download_dir")); } sub update_media() { |