Blob Blame History Raw
From 2efff7a416a4636b00c25d02592a5d8e3920755f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zden=C4=9Bk=20Pavlas?= <zpavlas@redhat.com>
Date: Thu, 15 Dec 2011 11:53:28 +0100
Subject: [PATCH] Use the already decompressed comps file.  BZ 758574.

Instead of decompressing the file every time check
if decompressed version exists.  It's faster and
avoids possible EPERM on write with --cacheonly.
---
 langpacks.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/langpacks.py b/langpacks.py
index b147d59..6a58a7c 100644
--- a/langpacks.py
+++ b/langpacks.py
@@ -75,7 +75,7 @@ def postreposetup_hook(conduit):
 
         if not infile:
             continue
-        infile = yum.misc.decompress(infile)
+        infile = yum.misc.decompress(infile, check_timestamps=True)
         for event, elem in iterparse(infile):
             if elem.tag == "langpacks":
                 for child in elem.getchildren():
-- 
1.7.4.4