[yum-git] 5 commits - Makefile yum/Errors.py yum/__init__.py yum/config.py yum/depsolve.py yum/packageSack.py

James Bowes jbowes at linux.duke.edu
Sun Mar 23 18:08:44 UTC 2008


 Makefile           |    4 ++--
 yum/Errors.py      |   14 ++++++++++++++
 yum/__init__.py    |    1 -
 yum/config.py      |    8 ++++++++
 yum/depsolve.py    |    1 -
 yum/packageSack.py |    2 +-
 6 files changed, 25 insertions(+), 5 deletions(-)

New commits:
commit 197c4731c6f23a245275ecfe050c9e8d1cdf1756
Author: James Bowes <jbowes at redhat.com>
Date:   Sun Mar 23 09:52:04 2008 -0400

    Remove some unused imports

diff --git a/yum/__init__.py b/yum/__init__.py
index 7985d02..bff85b9 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2798,7 +2798,6 @@ class YumBase(depsolve.Depsolve):
         self.runTransaction( cb=cb )
 
     def _run_rpm_check_debug(self):
-        import rpm
         results = []
         # save our dsCallback out
         dscb = self.dsCallback
diff --git a/yum/depsolve.py b/yum/depsolve.py
index 2b33e5d..3daf4c8 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -19,7 +19,6 @@ Depedancy resolution module for yum.
 """
 
 import os.path
-import re
 import types
 import logging
 
commit e77b7cab59f0dbe16326c4ecaac42a4251a26ca0
Author: James Bowes <jbowes at redhat.com>
Date:   Sun Mar 23 09:44:58 2008 -0400

    Add some docstrings for yum.config

diff --git a/yum/config.py b/yum/config.py
index 59fe059..ea7c158 100644
--- a/yum/config.py
+++ b/yum/config.py
@@ -322,6 +322,9 @@ class BoolOption(Option):
             return "0"
 
 class FloatOption(Option):
+    """
+    An option representing a numeric float value.
+    """
     def parse(self, s):
         try:
             return float(s.strip())
@@ -395,6 +398,11 @@ class BytesOption(Option):
 
 class ThrottleOption(BytesOption):
 
+    """
+    An option representing a bandwidth throttle value. See
+    ThrottleOption.parse for acceptable input values.
+    """
+
     def parse(self, s):
         """Get a throttle option. 
 
commit 0d6ce9d529424515757ddbdf3cdf28ae3990042a
Author: James Bowes <jbowes at redhat.com>
Date:   Sun Mar 23 09:41:08 2008 -0400

    Add some docstrings for yum.Errors

diff --git a/yum/Errors.py b/yum/Errors.py
index 94162b9..4bccd86 100644
--- a/yum/Errors.py
+++ b/yum/Errors.py
@@ -14,8 +14,15 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 # Copyright 2004 Duke University
 
+"""
+Exceptions and Errors thrown by yum.
+"""
 
 class YumBaseError(Exception):
+    """
+    Base Yum Error. All other Errors thrown by yum should inherit from
+    this.
+    """
     def __init__(self, value=None):
         Exception.__init__(self)
         self.value = value
@@ -86,9 +93,16 @@ class MediaError(YumBaseError):
     pass
     
 class YumDeprecationWarning(DeprecationWarning):
+    """
+    Used to mark a method as deprecated.
+    """
     def __init__(self, value=None):
         DeprecationWarning.__init__(self, value)
 
 class YumFutureDeprecationWarning(YumDeprecationWarning):
+    """
+    Used to mark a method as deprecated. Unlike YumDeprecationWarning,
+    YumFutureDeprecationWarnings will not be shown on the console.
+    """
     def __init__(self, value=None):
         YumDeprecationWarning.__init__(self, value)
commit 0fa9ba3e20d243f45814c96afeb414455bd1c256
Author: James Bowes <jbowes at redhat.com>
Date:   Sun Mar 23 09:33:19 2008 -0400

    Add missing repoid kwarg to PackageSackBase.returnPackages

diff --git a/yum/packageSack.py b/yum/packageSack.py
index 1a2169f..17e9164 100644
--- a/yum/packageSack.py
+++ b/yum/packageSack.py
@@ -126,7 +126,7 @@ class PackageSackBase(object):
         """delete a pkgobject"""
         raise NotImplementedError()
 
-    def returnPackages(self, patterns=None):
+    def returnPackages(self, repoid=None, patterns=None):
         """return list of all packages"""
         raise NotImplementedError()
 
commit 599a4484dc05d1d5eedbfd22bcea03e47dc2cd04
Author: James Bowes <jbowes at redhat.com>
Date:   Sun Mar 23 09:27:58 2008 -0400

    Update doccheck target for removed modules

diff --git a/Makefile b/Makefile
index e64b748..48b7333 100644
--- a/Makefile
+++ b/Makefile
@@ -36,8 +36,8 @@ install:
 
 .PHONY: docs test
 
-DOCS = yum rpmUtils callback.py progress_meter.py yumcommands.py shell.py \
-	   translate.py output.py i18n.py cli.py yummain.py
+DOCS = yum rpmUtils callback.py yumcommands.py shell.py output.py cli.py \
+	   yummain.py
 docs:
 	epydoc -n yum -o docs/epydoc -u http://linux.duke.edu/projects/yum $(DOCS)
 



More information about the Yum-cvs-commits mailing list