---
 yum/__init__.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index 324a8ec..f21001d 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -624,7 +624,11 @@ class YumBase(depsolve.Depsolve):
         
         if self.conf.obsoletes:
             obs_init = time.time()    
-            self._up.rawobsoletes = self.pkgSack.returnObsoletes()
+            #  Note: newest=True here is semi-required for repos. with multiple
+            # versions. The problem is that if pkgA-2 _accidentally_ obsoletes
+            # pkgB-1, and we keep all versions, we want to release a pkgA-3
+            # that doesn't do the obsoletes ... and thus. not obsolete pkgB-1.
+            self._up.rawobsoletes = self.pkgSack.returnObsoletes(newest=True)
             self.verbose_logger.debug('up:Obs Init time: %0.3f' % (time.time() 
- obs_init))
 
         self._up.myarch = self.arch.canonarch
-- 
1.6.6

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to