[yum-commits] Branch 'yum-3_2_X' - yum/misc.py
skvidal at osuosl.org
skvidal at osuosl.org
Mon Feb 23 20:12:00 UTC 2009
yum/misc.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 091a275b80cd61196531de85fdfdef7bd2ef66d2
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Feb 23 15:10:47 2009 -0500
make sure reuse doesn't accidentally stumble over another dir
diff --git a/yum/misc.py b/yum/misc.py
index c7ee7b6..94ad708 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -510,10 +510,11 @@ def getCacheDir(tmpdir='/var/tmp', reuse=True):
except KeyError:
return None # if it returns None then, well, it's bollocksed
- prefix = 'yum-%s-' % username
-
+ prefix = 'yum-'
+
if reuse:
# check for /var/tmp/yum-username-* -
+ prefix = 'yum-%s-' % username
dirpath = '%s/%s*' % (tmpdir, prefix)
cachedirs = sorted(glob.glob(dirpath))
for thisdir in cachedirs:
More information about the Yum-commits
mailing list