diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-11-19 16:57:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-11-19 16:57:07 +0000 |
commit | d269c50056f96aef32ecbb90c431f8cf6be50dba (patch) | |
tree | 0368af19c946cd41304ae8861a043fea34486dbe /mdkapplet | |
parent | 12b508ea10426dfd80da72c488bf0f6acf03054b (diff) | |
download | mgaonline-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-x | mdkapplet | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |