[yum-git] yum/packages.py
James Antill
james at linux.duke.edu
Fri Jan 25 21:03:05 UTC 2008
yum/packages.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit a54d55f15c66196aa887e47159430ecdaaae7b68
Author: James Antill <james at and.org>
Date: Fri Jan 25 16:01:39 2008 -0500
Move from unique repos. to a single repo. for installed packages.
diff --git a/yum/packages.py b/yum/packages.py
index 4cf42ad..a606592 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -814,11 +814,12 @@ class YumHeaderPackage(YumAvailablePackage):
self.hdr['changelogtext'])
return []
+_installed_repo = FakeRepository('installed')
+_installed_repo.cost = 0
class YumInstalledPackage(YumHeaderPackage):
"""super class for dealing with packages in the rpmdb"""
def __init__(self, hdr):
- fakerepo = FakeRepository('installed')
- fakerepo.cost = 0
+ fakerepo = _installed_repo
YumHeaderPackage.__init__(self, fakerepo, hdr)
class YumLocalPackage(YumHeaderPackage):
More information about the Yum-cvs-commits
mailing list