[yum-git] 2 commits - plugins/list-data plugins/security

James Antill james at linux.duke.edu
Fri Jan 25 23:15:16 UTC 2008


 plugins/list-data/list-data.py |   12 +++++++++++-
 plugins/security/security.py   |    5 ++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

New commits:
commit e1dcdcfb0395d00dff86abf9551c04403786fdbc
Author: James Antill <james at and.org>
Date:   Fri Jan 25 18:15:11 2008 -0500

    Add support for the new help

diff --git a/plugins/security/security.py b/plugins/security/security.py
index 79d8fdc..b7e02cb 100755
--- a/plugins/security/security.py
+++ b/plugins/security/security.py
@@ -159,7 +159,10 @@ class SecurityListCommands:
         return ['list-security', 'list-sec']
 
     def getUsage(self):
-        return self.getNames()[0]
+        return "[security|bugzilla|cve] [PACKAGE-wildcard]"
+
+    def getSummary(self):
+        return "Returns security data for the packages listed, that affects your system"
 
     def doCheck(self, base, basecmd, extcmds):
         pass
commit b1a2bbb1dfb6de43bbfdf63cb2ef406771876eb8
Author: James Antill <james at and.org>
Date:   Fri Jan 25 18:02:14 2008 -0500

    Add support for the new help

diff --git a/plugins/list-data/list-data.py b/plugins/list-data/list-data.py
index 774db77..55eab79 100755
--- a/plugins/list-data/list-data.py
+++ b/plugins/list-data/list-data.py
@@ -56,7 +56,14 @@ class ListDataCommands:
         return ['list-' + self.name]
 
     def getUsage(self):
-        return self.getNames()[0]
+        return "[PACKAGE|all|installed|updates|extras|obsoletes|recent]"
+
+    def _getSummary(self):
+        return """\
+Display aggregate data on the %s attribute of a group of packages""" % self.attr
+
+    def getSummary(self):
+        return self._getSummary()
 
     def doCheck(self, base, basecmd, extcmds):
         pass
@@ -123,6 +130,9 @@ class InfoDataCommands(ListDataCommands):
     def getNames(self):
         return ['info-' + self.name]
 
+    def getSummary(self):
+        return self._getSummary() + "\nAnd list all the packages under each"
+
     def show_pkgs(self, msg, pkgs):
         for pkg in pkgs:
             msg("    %s" % (pkg))



More information about the Yum-cvs-commits mailing list