summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-22 16:41:46 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-22 16:41:46 +0000
commite1943d3405f66b5db1866e7338da8fbeb3efec22 (patch)
treeab8e6e4194081bb20c1f9fba367d3f298d7ecc04
parent3239c23174aa214461686a4f274ae9bf79998b81 (diff)
downloadmgaonline-e1943d3405f66b5db1866e7338da8fbeb3efec22.tar
mgaonline-e1943d3405f66b5db1866e7338da8fbeb3efec22.tar.gz
mgaonline-e1943d3405f66b5db1866e7338da8fbeb3efec22.tar.bz2
mgaonline-e1943d3405f66b5db1866e7338da8fbeb3efec22.tar.xz
mgaonline-e1943d3405f66b5db1866e7338da8fbeb3efec22.zip
(is_there_a_new_distributions) further fix testing for
/var/lib/urpmi/stale_upgrade_in_progress: make sure 'new_distro' is filled
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2ba36ebd..6cc467d1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- mdkapplet
+ o further fix testing for /var/lib/urpmi/stale_upgrade_in_progress
o make sure confirm dialog is large enough on 2008.1
o use wizard button order in confirm dialog
diff --git a/mdkapplet b/mdkapplet
index 8558c0fc..5adf9d3f 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -266,7 +266,6 @@ ugtk2::exit(0);
sub is_there_a_new_distributions() {
$product_id = common::parse_LDAP_namespace_structure(cat_("$root/etc/product.id"));
return if $product_id->{product} =~ /Flash/;
- return 1 if -e get_stale_upgrade_filename();
#- contact the following URL to retrieve the list of released distributions.
my $type = lc($product_id->{type}); $type =~ s/\s//g;
my $extra_path = $::testing || uc($config{TEST_DISTRO_UPGRADE}) eq 'YES' ? 'testing-' : '';
@@ -306,6 +305,10 @@ sub is_there_a_new_distributions() {
# then it's the most recent release:
my $new_distribution = $distros[0];
+ if (-e get_stale_upgrade_filename()) {
+ $new_distro = $new_distribution;
+ return 1;
+ }
return if !member($product_id->{version}, map { $_->{version} } @distros);
if ($new_distribution && $new_distribution->{version} ne $product_id->{version}) {