summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-14 01:49:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-14 01:49:17 +0000
commit748beb04721564bbefe1abb0b62631ef3205225a (patch)
tree02dcb86c94e1f59c200a55027533069a595a5a97
parent3610cd76cae7e272251c8e25e4a54bb447ff91b9 (diff)
downloadmgaonline-748beb04721564bbefe1abb0b62631ef3205225a.tar
mgaonline-748beb04721564bbefe1abb0b62631ef3205225a.tar.gz
mgaonline-748beb04721564bbefe1abb0b62631ef3205225a.tar.bz2
mgaonline-748beb04721564bbefe1abb0b62631ef3205225a.tar.xz
mgaonline-748beb04721564bbefe1abb0b62631ef3205225a.zip
(is_there_a_new_distributions) reread distro release after distro upgrade
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ab31b78b..54abcb45 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o reread distro release after distro upgrade
+
Version 2.56 - 14 October 2008
- drop PAM permissions for urpmi.removemedia (introduced in 2.46)
diff --git a/mdkapplet b/mdkapplet
index c11ded72..340bcebc 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -237,7 +237,7 @@ foreach my $opt (@ARGV) {
my $root = Rpmdrake::open_db::fast_open_urpmi_db()->{root};
my $new_distro;
-my $product_id = common::parse_LDAP_namespace_structure(cat_("$root/etc/product.id"));
+my $product_id;
shouldStart() or die "$localfile should be set to TRUE: please use --force or -f option to launch applet\n";
@@ -264,6 +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/;
#- contact the following URL to retrieve the list of released distributions.
my $type = lc($product_id->{type}); $type =~ s/\s//g;