From 325b2bbce252829d3a15bb5188dc87c5c2d2e413 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 14 Oct 2008 02:22:15 +0000 Subject: (is_there_a_new_distributions) enable to test distro upgrade even when service is disabled through either the --testing option or "TEST_DISTRO_UPGRADE=yes" in /etc/sysconfig/mdkapplet --- NEWS | 5 +++++ mdkapplet | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 067842fe..94e12f0e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +- mdkapplet + o enable to test distro upgrade even when service is disabled + through either --testing option or "TEST_DISTRO_UPGRADE=yes" in + /etc/sysconfig/mdkapplet + Version 2.57 - 14 October 2008 - mdkapplet diff --git a/mdkapplet b/mdkapplet index 8c3a679b..f9e279a5 100755 --- a/mdkapplet +++ b/mdkapplet @@ -268,7 +268,8 @@ sub is_there_a_new_distributions() { 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; - my $list = "http://api.mandriva.com/distributions/$type.$product_id->{arch}.list?product=$product_id->{product}"; + my $extra_path = $::testing || uc($config{TEST_DISTRO_UPGRADE}) eq 'YES' ? 'testing-' : ''; + my $list = "http://api.mandriva.com/distributions/$extra_path$type.$product_id->{arch}.list?product=$product_id->{product}"; log::explanations("trying distributions list from $list"); my @lines = eval { -- cgit v1.2.1