[yum-commits] Branch 'yum-3_2_X' - yum/packages.py

skvidal at osuosl.org skvidal at osuosl.org
Wed Jan 28 16:51:14 UTC 2009


 yum/packages.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit ff4908950c25152494f69d5ca38c5dc5aec6b156
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Jan 28 11:50:19 2009 -0500

    for compatibility make sure PackageEVR objects also have 'version' and 'release' attributes

diff --git a/yum/packages.py b/yum/packages.py
index 2cc8645..80ba8bb 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -461,7 +461,9 @@ class PackageEVR:
     def __init__(self,e,v,r):
         self.epoch = e
         self.ver = v
+        self.version = v
         self.rel = r
+        self.release = r
         
     def compare(self,other):
         return rpmUtils.miscutils.compareEVR((self.epoch, self.ver, self.rel), (other.epoch, other.ver, other.rel))


More information about the Yum-commits mailing list