summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-19 16:57:07 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-19 16:57:07 +0000
commitd269c50056f96aef32ecbb90c431f8cf6be50dba (patch)
tree0368af19c946cd41304ae8861a043fea34486dbe /mdkapplet
parent12b508ea10426dfd80da72c488bf0f6acf03054b (diff)
downloadmgaonline-d269c50056f96aef32ecbb90c431f8cf6be50dba.tar
mgaonline-d269c50056f96aef32ecbb90c431f8cf6be50dba.tar.gz
mgaonline-d269c50056f96aef32ecbb90c431f8cf6be50dba.tar.bz2
mgaonline-d269c50056f96aef32ecbb90c431f8cf6be50dba.tar.xz
mgaonline-d269c50056f96aef32ecbb90c431f8cf6be50dba.zip
(get_distro_list) make it somewhat more readable
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 6af9a19c..4eb0a3f5 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -285,7 +285,11 @@ sub get_distro_list() {
#- 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-' : '';
- my $list = "https://api.mandriva.com/distributions/$extra_path$type.$product_id->{arch}.list?product=$product_id->{product}&version=$product_id->{version}";
+ my $list =
+ join('&',
+ "https://api.mandriva.com/distributions/$extra_path$type.$product_id->{arch}.list?product=$product_id->{product}",
+ "version=$product_id->{version}",
+ );
log::explanations("trying distributions list from $list");
eval {