[yum-commits] docs/repoquery.1 repoquery.py

James Antill james at osuosl.org
Thu Mar 10 14:28:45 UTC 2011


 docs/repoquery.1 |   17 ++++++-----------
 repoquery.py     |    6 +++---
 2 files changed, 9 insertions(+), 14 deletions(-)

New commits:
commit 9356ddc1e9379e66bb12fe704fcfee8289e3a964
Author: Pierre-Yves Chibon <py at chibon.fr>
Date:   Thu Mar 10 08:32:27 2011 +0100

    Fix bug in repoquery (Dot => DotPlot) and update repoquery man page.

diff --git a/docs/repoquery.1 b/docs/repoquery.1
index 3be6c7c..9773bac 100644
--- a/docs/repoquery.1
+++ b/docs/repoquery.1
@@ -90,14 +90,12 @@ Specify custom output format for queries. You can add ":date", ":day" and
 ":isodate" to all the tags that are a time, and you can add ":k", ":m", ":g",
 ":t" and ":h" to sizes. You can also specify field width as in
 sprintf (Eg. %-20{name})
-.IP "\fB\-\-tree\-requires [pkgs]\fP"
-For the given packages print a tree of the packages that they require.
-.IP "\fB\-\-tree\-conflicts [pkgs]\fP"
-For the given packages print a tree of the packages that they conflict.
-.IP "\fB\-\-tree\-obsoletes [pkgs]\fP"
-For the given packages print a tree of the packages that they obsolete.
-.IP "\fB\-\-tree\-whatrequires [pkgs]\fP"
-For the given packages print a tree of the packages that require them.
+.IP "\fB\-\-output [text|ascii-tree|dot-tree]\fP"
+Output format which can be used with --requires/--whatrequires/--obsoletes/--conflicts.
+Default output is 'text'.
+.IP "\fB\-\-level [all|any int]\fP"
+In combination with --output ascii-tree|dot-tree this option specifies the
+number of level to print on the tree. Default level is 'all'.
 .PP 
 
 .SH "PACKAGE SELECTION OPTIONS" 
@@ -134,9 +132,6 @@ Limit what packages are considered for the query. Valid values for WHAT are:
 installed, available, recent, updates, extras, all and repository (default).
 .IP "\fB\-\-installed\fP"
 Restrict query ONLY to installed pkgs - disables all repos and only acts on rpmdb.
-.IP "\fB\-\-show-dupes, \-\-show\-duplicates\fP"
-Query all versions of package. By default only newest packages are
-considered.
 
 .PP
 .SH "GROUP QUERY OPTIONS" 
diff --git a/repoquery.py b/repoquery.py
index 858e4c1..64fb4ec 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -362,7 +362,7 @@ class pkgQuery:
         
         if kw['output'].lower() == 'dot-tree':
             if 'dot' not in kw.keys() or kw['dot'] is None:
-                kw['dot'] = Dot()
+                kw['dot'] = DotPlot()
         elif 'dot' not in kw.keys() or kw['dot'] is None:
             kw['dot'] = None
         
@@ -454,7 +454,7 @@ class pkgQuery:
         
         if kw['output'].lower() == 'dot-tree':
             if 'dot' not in kw.keys() or kw['dot'] is None:
-                kw['dot'] = Dot()
+                kw['dot'] = DotPlot()
         elif 'dot' not in kw.keys() or kw['dot'] is None:
             kw['dot'] = None
         
@@ -526,7 +526,7 @@ class pkgQuery:
         
         if kw['output'].lower() == 'dot-tree':
             if 'dot' not in kw.keys() or kw['dot'] is None:
-                kw['dot'] = Dot()
+                kw['dot'] = DotPlot()
 
         if str(kw['tree_level']).lower() != 'all':
             try: 


More information about the Yum-commits mailing list