[yum-commits] repoclosure.py

James Antill james at osuosl.org
Tue Mar 3 16:56:32 UTC 2009


 repoclosure.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f7a73716cf9e0ec248eb06992378d60a779a1fd4
Author: James Antill <james at and.org>
Date:   Tue Mar 3 11:55:59 2009 -0500

    Fix RepoClosure() API for spam-o-matic, and other users

diff --git a/repoclosure.py b/repoclosure.py
index de612c3..0509fd3 100755
--- a/repoclosure.py
+++ b/repoclosure.py
@@ -63,8 +63,10 @@ def parseArgs():
     (opts, args) = parser.parse_args()
     return (opts, args)
 
+#  Note that this is a "real" API, used by spam-o-matic etc.
+# so we have to do at least some API guarantee stuff.
 class RepoClosure(yum.YumBase):
-    def __init__(self, pkgonly, arch = [], config = "/etc/yum.conf", builddeps = False ):
+    def __init__(self, arch=[], config="/etc/yum.conf", builddeps=False, pkgonly=None):
         yum.YumBase.__init__(self)
         self.logger = logging.getLogger("yum.verbose.repoclosure")
         self.arch = arch


More information about the Yum-commits mailing list