diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-21 14:25:43 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-21 14:25:43 +0000 |
commit | aa40ddc296c709c7282b3be1c3ad0bb7d49105eb (patch) | |
tree | f7a43238e015da53e6cb0d535832e2437178b46d /Rpmdrake | |
parent | 9f67acef1e20f050f40a03efc44011bc055f07e8 (diff) | |
download | rpmdrake-aa40ddc296c709c7282b3be1c3ad0bb7d49105eb.tar rpmdrake-aa40ddc296c709c7282b3be1c3ad0bb7d49105eb.tar.gz rpmdrake-aa40ddc296c709c7282b3be1c3ad0bb7d49105eb.tar.bz2 rpmdrake-aa40ddc296c709c7282b3be1c3ad0bb7d49105eb.tar.xz rpmdrake-aa40ddc296c709c7282b3be1c3ad0bb7d49105eb.zip |
(formatlistpkg) move from pkg.pm into formatting.pm (more logical
place & will be reused by edit-urpm-sources)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/formatting.pm | 3 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm index 43b72312..07ad40fc 100644 --- a/Rpmdrake/formatting.pm +++ b/Rpmdrake/formatting.pm @@ -40,6 +40,7 @@ our @EXPORT = qw( format_changelog_string format_field format_header + formatlistpkg format_name_n_summary format_size format_update_field @@ -164,4 +165,6 @@ sub format_size { N("%s of disk space will be freed.", formatXiB(-$size)); } +sub formatlistpkg { join("\n", map { s/^(\s)/ $1/mg; "- $_" } sort { uc($a) cmp uc($b) } @_) } + 1; diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 2fd79c4a..b95e7a68 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -52,7 +52,6 @@ our @EXPORT = qw( download_callback extract_header find_installed_version - formatlistpkg get_pkgs parse_compssUsers_flat perform_installation @@ -193,8 +192,6 @@ sub find_installed_version { @version ? join(',', sort @version) : N("(none)"); } -sub formatlistpkg { join("\n", map { s/^(\s)/ $1/mg; "- $_" } sort { uc($a) cmp uc($b) } @_) } - my $canceled; sub download_callback { my ($gurpm, $mode, $file, $percent, $total, $eta, $speed) = @_; |