diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-04 07:28:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-04 07:28:51 +0000 |
commit | 9d918434c9c263ddbb5f6860c14303071f641b05 (patch) | |
tree | abd132c89a40605c9086da82cd640ae349e676ef /urpm/download.pm | |
parent | 670b614683cf9bbabf2f2f060e696cfee8b5b831 (diff) | |
download | urpmi-9d918434c9c263ddbb5f6860c14303071f641b05.tar urpmi-9d918434c9c263ddbb5f6860c14303071f641b05.tar.gz urpmi-9d918434c9c263ddbb5f6860c14303071f641b05.tar.bz2 urpmi-9d918434c9c263ddbb5f6860c14303071f641b05.tar.xz urpmi-9d918434c9c263ddbb5f6860c14303071f641b05.zip |
remove one indentation level in generated .metalink
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 9de5fc8a..5ac4a22d 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -947,12 +947,10 @@ sub _create_metalink_ { _create_one_metalink_line($medium, $_, $rel_file, $i); } @mirrors; - push @metalink, - qq(\t<file name=") . basename($rel_file) . '">', - qq(\t\t<resources>), - (map { "\t\t\t$_" } @lines), - "\t\t</resources>", - "\t</file>"; + push @metalink, map { "\t$_" } + sprintf('<file name="%s"><resources>', basename($rel_file)), + (map { "\t$_" } @lines), + '</resources></file>'; } push @metalink, '</files>', '</metalink>'; |