[yum-git] 4 commits - plugins/aliases plugins/changelog plugins/list-data plugins/verify

James Antill james at linux.duke.edu
Wed Apr 2 13:49:10 UTC 2008


 plugins/aliases/aliases.py     |    3 +++
 plugins/changelog/changelog.py |    7 +++++++
 plugins/list-data/list-data.py |    7 +++++++
 plugins/verify/verify.py       |    9 ++++++++-
 4 files changed, 25 insertions(+), 1 deletion(-)

New commits:
commit e9bd98905e5e4f3e39ea43acccb97e03b3066acb
Author: James Antill <james at and.org>
Date:   Wed Apr 2 09:49:03 2008 -0400

    Do needTs logic in verify comand

diff --git a/plugins/verify/verify.py b/plugins/verify/verify.py
index 9eb6ef2..134fa37 100644
--- a/plugins/verify/verify.py
+++ b/plugins/verify/verify.py
@@ -357,7 +357,14 @@ Verify packages and display data on bad verifications"""
         self.show_data(base, msg, ypl.extras,    'Extra Packages')
 
         return 0, [basecmd + ' done']
-            
+
+    def needTs(self, base, basecmd, extcmds):
+        if not len(extcmds) or extcmds[0] != 'extras':
+            return False
+        
+        return True
+
+
 def config_hook(conduit):
     '''
     Yum Plugin Config Hook: 
commit 34e088dc491c1a084bab181e698c22b49ebedab5
Author: James Antill <james at and.org>
Date:   Wed Apr 2 09:46:59 2008 -0400

    Do the list needTs logic in changelog comand

diff --git a/plugins/changelog/changelog.py b/plugins/changelog/changelog.py
index 3dc00cc..9dcb809 100644
--- a/plugins/changelog/changelog.py
+++ b/plugins/changelog/changelog.py
@@ -190,6 +190,13 @@ Display changelog data, since a specified time, on a group of packages"""
                    ' stats. %d pkg%s, %d source pkg%s, %d changelog%s' %
                    (self._pkgs, ps, self._spkgs, sps, self._changelogs, cs)]
 
+    def needTs(self, base, basecmd, extcmds):
+        if len(extcmds) and extcmds[0] == 'installed':
+            return False
+        
+        return True
+
+
 def config_hook(conduit):
     conduit.registerCommand(ChangeLogCommand())
     parser = conduit.getOptParser()
commit 488bca0453d7dedce8bb1d0e4dbd7d29767eafb4
Author: James Antill <james at and.org>
Date:   Wed Apr 2 09:45:40 2008 -0400

    Don't need Ts for alias

diff --git a/plugins/aliases/aliases.py b/plugins/aliases/aliases.py
index 608f2b4..dbbbd2a 100644
--- a/plugins/aliases/aliases.py
+++ b/plugins/aliases/aliases.py
@@ -135,6 +135,9 @@ class AliasCommand(AliasedCommand):
         
         return 0, [basecmd + ' done']
 
+    def needTs(self, base, basecmd, extcmds):
+        return False
+
 
 def config_hook(conduit):
     global aliases
commit 4a6848dabf78be63673a020c25a0f9255b47ecc7
Author: James Antill <james at and.org>
Date:   Wed Apr 2 09:44:57 2008 -0400

    Do the list needTs logic in list/info-data comands

diff --git a/plugins/list-data/list-data.py b/plugins/list-data/list-data.py
index 11bfb9e..9ca303c 100755
--- a/plugins/list-data/list-data.py
+++ b/plugins/list-data/list-data.py
@@ -143,6 +143,13 @@ Display aggregate data on the %s attribute of a group of packages""" % self.attr
         self.cmd_end()
 
         return 0, [basecmd + ' done']
+
+    def needTs(self, base, basecmd, extcmds):
+        if len(extcmds) and extcmds[0] == 'installed':
+            return False
+        
+        return True
+
             
 class InfoDataCommands(ListDataCommands):
     def getNames(self):



More information about the Yum-cvs-commits mailing list