summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-21 22:42:24 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-21 22:42:24 +0000
commit24ae953089c4b954b78a82ec76d0bb0fd1ec73ae (patch)
treeb9942d0c57f771f373bc2bbc8fc61cc76b97718f /mdkapplet
parentbbb1c616f61a8c570d61bf983dbcd90597542279 (diff)
downloadmgaonline-24ae953089c4b954b78a82ec76d0bb0fd1ec73ae.tar
mgaonline-24ae953089c4b954b78a82ec76d0bb0fd1ec73ae.tar.gz
mgaonline-24ae953089c4b954b78a82ec76d0bb0fd1ec73ae.tar.bz2
mgaonline-24ae953089c4b954b78a82ec76d0bb0fd1ec73ae.tar.xz
mgaonline-24ae953089c4b954b78a82ec76d0bb0fd1ec73ae.zip
(real_upgrade) split it out of upgrade()
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 12af7052..63a99f66 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -514,6 +514,10 @@ sub really_confirm_upgrade() {
sub upgrade() {
return if $mdv_update_pid;
return if !confirm_upgrade();
+ real_upgrade();
+}
+
+sub real_upgrade() {
$mdv_update_pid = fork_exec('mdkapplet-upgrade-helper', "--new_distro_version=$new_distro->{version}",
if_($download_all, "--download-all=$download_dir"),
if_($root, "--urpmi-root=$root"));