[yum-commits] yumdownloader.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Feb 18 14:31:37 UTC 2013


 yumdownloader.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 63d2c958a8e4722967506c813b06325330f911d0
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Mon Feb 18 15:30:44 2013 +0100

    Download only installed/updated packages.  BZ 908986

diff --git a/yumdownloader.py b/yumdownloader.py
index 300e530..990ab85 100755
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -187,7 +187,7 @@ class YumDownloader(YumUtilBase):
             self.resolveDeps()
             # Add newly added packages to the toDownload list
             for pkg in self.tsInfo.getMembers():
-                if not pkg in toDownload:
+                if pkg.ts_state in ('i', 'u') and pkg.po not in toDownload:
                     toDownload.append(pkg.po)
         if len(toDownload) == 0:
             self.logger.error('Nothing to download')


More information about the Yum-commits mailing list