aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-21 14:25:43 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-21 14:25:43 +0000
commitaa40ddc296c709c7282b3be1c3ad0bb7d49105eb (patch)
treef7a43238e015da53e6cb0d535832e2437178b46d /Rpmdrake/formatting.pm
parent9f67acef1e20f050f40a03efc44011bc055f07e8 (diff)
downloadrpmdrake-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/formatting.pm')
-rw-r--r--Rpmdrake/formatting.pm3
1 files changed, 3 insertions, 0 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;