summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-02 18:34:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-02 18:34:04 +0000
commitaa0081998ede86d9e2abcad1390703bf081a5285 (patch)
tree011c5c98b7ae6287ad0c50c1288d8cf769354168
parent9f085d757dddbb47d9d9692bed97a911e9cc671f (diff)
downloadurpmi-aa0081998ede86d9e2abcad1390703bf081a5285.tar
urpmi-aa0081998ede86d9e2abcad1390703bf081a5285.tar.gz
urpmi-aa0081998ede86d9e2abcad1390703bf081a5285.tar.bz2
urpmi-aa0081998ede86d9e2abcad1390703bf081a5285.tar.xz
urpmi-aa0081998ede86d9e2abcad1390703bf081a5285.zip
handle urpmf --license
-rw-r--r--NEWS2
-rw-r--r--pod/urpmf.8.pod4
-rw-r--r--urpm/args.pm1
-rwxr-xr-xurpmf2
-rw-r--r--urpmi.bash-completion2
5 files changed, 10 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7488de4f..53a1384d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- urpmf
+ o handle --license
- urpmi.update
o handle -q option (#31890)
- urpmq
diff --git a/pod/urpmf.8.pod b/pod/urpmf.8.pod
index c17395f3..af05582c 100644
--- a/pod/urpmf.8.pod
+++ b/pod/urpmf.8.pod
@@ -152,6 +152,10 @@ specify no field).
Prints the Group tag.
+=item B<--license>
+
+Prints the License tag.
+
=item B<--name>
Prints package names.
diff --git a/urpm/args.pm b/urpm/args.pm
index 5405838d..403e52b6 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -335,6 +335,7 @@ foreach my $k (qw(
filename
files
group
+ license
obsoletes
packager
provides
diff --git a/urpmf b/urpmf
index 30e5a592..03ca1fa4 100755
--- a/urpmf
+++ b/urpmf
@@ -69,6 +69,7 @@ usage: urpmf [options] pattern-expression
") . N(" --filename - filename of the package
") . N(" --files - list of files contained in the package
") . N(" --group - group
+") . N(" --license - license
") . N(" --name - package name
") . N(" --obsoletes - obsoletes tags
") . N(" --packager - packager
@@ -200,6 +201,7 @@ my $need_hdlist = grep { $usedtags{$_} } qw(
description
distribution
files
+ license
packager
sourcerpm
url
diff --git a/urpmi.bash-completion b/urpmi.bash-completion
index b734171b..bc93daed 100644
--- a/urpmi.bash-completion
+++ b/urpmi.bash-completion
@@ -241,7 +241,7 @@ _urpmf()
# return list of available options
COMPREPLY=( $( compgen -W '-i -f -e -a -o -m --help --update \
--media --excludemedia --sortmedia --synthesis --use-distrib \
- --verbose --quiet --uniq --name --group --size \
+ --verbose --quiet --uniq --name --group --license --size \
--epoch --summary --description --sourcerpm --packager\
--buildhost --url --provides --requires --files \
--conflicts --obsoletes --env ' -- $cur ) )