summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-14 02:22:15 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-14 02:22:15 +0000
commit325b2bbce252829d3a15bb5188dc87c5c2d2e413 (patch)
tree6c7f936dd49fabb94f599dc16e196da592184713 /mdkapplet
parent686042f8de070de9a64f9420e2187baf2cded7ff (diff)
downloadmgaonline-325b2bbce252829d3a15bb5188dc87c5c2d2e413.tar
mgaonline-325b2bbce252829d3a15bb5188dc87c5c2d2e413.tar.gz
mgaonline-325b2bbce252829d3a15bb5188dc87c5c2d2e413.tar.bz2
mgaonline-325b2bbce252829d3a15bb5188dc87c5c2d2e413.tar.xz
mgaonline-325b2bbce252829d3a15bb5188dc87c5c2d2e413.zip
(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
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
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 {