summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-22 12:02:04 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-22 12:02:04 +0000
commit124797d7b18ca516652a2191582b79969730e2dd (patch)
treeccfdc32c57e4229b2458fbb7938719824a9315c9
parent75ff66dfcc3cdf5b8d6991f103c223e476f2920a (diff)
downloadmgaonline-124797d7b18ca516652a2191582b79969730e2dd.tar
mgaonline-124797d7b18ca516652a2191582b79969730e2dd.tar.gz
mgaonline-124797d7b18ca516652a2191582b79969730e2dd.tar.bz2
mgaonline-124797d7b18ca516652a2191582b79969730e2dd.tar.xz
mgaonline-124797d7b18ca516652a2191582b79969730e2dd.zip
(is_there_a_new_distributions) fix testing for/var/lib/urpmi/stale_upgrade_in_progress
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 84c6d74f..648e251d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o fix testing for/var/lib/urpmi/stale_upgrade_in_progress
+
Version 2.64 - 21 October 2008
- mdkapplet
diff --git a/mdkapplet b/mdkapplet
index 3cc44639..409a513b 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -264,7 +264,7 @@ 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 get_stale_upgrade_filename();
+ 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-' : '';