aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 15:06:26 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 15:06:26 +0000
commitc96ad4891f2c434bbab9008fd118670ad05a322d (patch)
tree687c72732a496157480253f5d2313ca1c0195237 /Rpmdrake/pkg.pm
parent3117aa564debb3746ba479954ae8721e2e77f9db (diff)
downloadrpmdrake-c96ad4891f2c434bbab9008fd118670ad05a322d.tar
rpmdrake-c96ad4891f2c434bbab9008fd118670ad05a322d.tar.gz
rpmdrake-c96ad4891f2c434bbab9008fd118670ad05a322d.tar.bz2
rpmdrake-c96ad4891f2c434bbab9008fd118670ad05a322d.tar.xz
rpmdrake-c96ad4891f2c434bbab9008fd118670ad05a322d.zip
(formatlistpkg) format list with bullets ("-") and indent urpmi
reasons (eg: "foobar-1.i586\n (due to missing...)")
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-xRpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 10502ce2..0aa9d32f 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -168,7 +168,7 @@ sub find_installed_version {
@version ? join(',', sort @version) : N("(none)");
}
-sub formatlistpkg { join("\n", sort { uc($a) cmp uc($b) } @_) }
+sub formatlistpkg { join("\n", map { s/^(\s)/ \1/mg; "- $_" } sort { uc($a) cmp uc($b) } @_) }
# -=-=-=---=-=-=---=-=-=-- install packages -=-=-=---=-=-=---=-=-=-