summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-07 10:03:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-07 10:03:15 +0000
commit4ab87638c1909e87503de5d929440b136e2e6438 (patch)
tree9b26670d4ef8e1274d07cc92f3d4b8437cac01b3 /urpmf
parent8d4e74b110be9be6e6963ea33d35b9b8c5b97dd6 (diff)
downloadurpmi-4ab87638c1909e87503de5d929440b136e2e6438.tar
urpmi-4ab87638c1909e87503de5d929440b136e2e6438.tar.gz
urpmi-4ab87638c1909e87503de5d929440b136e2e6438.tar.bz2
urpmi-4ab87638c1909e87503de5d929440b136e2e6438.tar.xz
urpmi-4ab87638c1909e87503de5d929440b136e2e6438.zip
indent the description and do not display on first line.
this allow processing of the output of urpmf (as required by Erwan Velu) for now choosing not to filter description (as suggested by rgs)
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmf b/urpmf
index 4dbbeb54..4155004a 100755
--- a/urpmf
+++ b/urpmf
@@ -129,6 +129,8 @@ my $sprintfargs = join(', ', map {
'$urpm::currentmedia->{name}';
} elsif ($_ eq 'fullname') {
'scalar($pkg->fullname)';
+ } elsif ($_ eq 'description') {
+ 'do { my $d = $pkg->description; $d =~ s/^/\t/mg; "\n$d" }';
} elsif ($multitags{$_}) {
$multitag and $urpm->{fatal}->(1, N("Incorrect format: you may use only one multi-valued tag"));
$multitag = $_;