aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
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;