[Yum-devel] [PATCH 2/2] Uncompress 'updateinfo.xml.gz' after downloading.

Zdeněk Pavlas zpavlas at redhat.com
Tue Apr 17 12:34:21 UTC 2012


This works around the problem with non-root process
trying to gen_decompress() it in a read-only directory.

http://lists.baseurl.org/pipermail/yum-devel/2012-April/009208.html
---
 yum/yumRepo.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index c4f8dd0..b2c49db 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1435,6 +1435,8 @@ Insufficient space in download directory %s
                 dl_local = local
                 local = misc.decompress(dl_local)
                 misc.unlink_f(dl_local)
+            elif nmdtype == 'updateinfo':
+                misc.repo_gen_decompress(local, 'updateinfo.xml')
             self._oldRepoMDData['new_MD_files'].append(local)
         self._doneOldRepoXML()
 
-- 
1.7.4.4



More information about the Yum-devel mailing list