Mageia Bugzilla – Attachment 1827 Details for
Bug 5065
Need procedure for early testing of upgrade via mgaapplet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch for mgaapplet to trigger upgrade from Mageia 1 to Cauldron
mgaapplet.patch (text/plain), 973 bytes, created by
Dave Hodgins
on 2012-03-23 04:34:22 CET
(
hide
)
Description:
Patch for mgaapplet to trigger upgrade from Mageia 1 to Cauldron
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2012-03-23 04:34:22 CET
Size:
973 bytes
patch
obsolete
>--- /usr/bin/mgaapplet.original 2011-05-28 17:12:20.000000000 -0400 >+++ /usr/bin/mgaapplet 2012-03-22 23:15:24.790834069 -0400 >@@ -322,8 +322,8 @@ > > # only compare first distro: if it's not the same as the currently installed one, > # then it's the most recent release: >- my $new_distribution = $distros[0]; >- >+ #my $new_distribution = $distros[0]; >+ my $new_distribution = "cauldron"; > if (-e get_stale_upgrade_filename()) { > $new_distro = $new_distribution; > return 1; >@@ -671,7 +671,7 @@ > } > > sub real_upgrade() { >- $mdv_update_pid = fork_exec('mgaapplet-upgrade-helper', "--new_distro_version=$new_distro->{version}", >+ $mdv_update_pid = fork_exec('mgaapplet-upgrade-helper', "--new_distro_version=cauldron", > if_($::testing, '--testing'), > if_($download_all, "--download-all=$download_dir"), > if_($root, "--urpmi-root=$root"));
--- /usr/bin/mgaapplet.original 2011-05-28 17:12:20.000000000 -0400 +++ /usr/bin/mgaapplet 2012-03-22 23:15:24.790834069 -0400 @@ -322,8 +322,8 @@ # only compare first distro: if it's not the same as the currently installed one, # then it's the most recent release: - my $new_distribution = $distros[0]; - + #my $new_distribution = $distros[0]; + my $new_distribution = "cauldron"; if (-e get_stale_upgrade_filename()) { $new_distro = $new_distribution; return 1; @@ -671,7 +671,7 @@ } sub real_upgrade() { - $mdv_update_pid = fork_exec('mgaapplet-upgrade-helper', "--new_distro_version=$new_distro->{version}", + $mdv_update_pid = fork_exec('mgaapplet-upgrade-helper', "--new_distro_version=cauldron", if_($::testing, '--testing'), if_($download_all, "--download-all=$download_dir"), if_($root, "--urpmi-root=$root"));
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5065
: 1827 |
1847