summaryrefslogtreecommitdiffstats
path: root/mdkapplet
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 /mdkapplet
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
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 4 insertions, 1 deletions
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}) {