From c96ad4891f2c434bbab9008fd118670ad05a322d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Aug 2007 15:06:26 +0000 Subject: (formatlistpkg) format list with bullets ("-") and indent urpmi reasons (eg: "foobar-1.i586\n (due to missing...)") --- Rpmdrake/pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -=-=-=---=-=-=---=-=-=- -- cgit v1.2.1