[yum-commits] yumdownloader.py
Tim Lauridsen
timlau at osuosl.org
Thu Mar 5 11:41:10 UTC 2009
yumdownloader.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 28c9a989cc9cebf6f74884510a61829766dc8d79
Author: Tim Lauridsen <tim at naboo.local>
Date: Thu Mar 5 12:37:49 2009 +0100
fix issues when running yumdownloader as non-root (rhbz #432889)
diff --git a/yumdownloader.py b/yumdownloader.py
index 53749e9..81bd950 100755
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -67,6 +67,7 @@ class YumDownloader(YumUtilBase):
# make yumdownloader work as non root user.
if self.conf.uid != 0:
cachedir = getCacheDir()
+ self.logger.debug('Running as non-root, using %s as cachedir' % cachedir)
if cachedir is None:
self.logger.error("Error: Could not make cachedir, exiting")
sys.exit(50)
@@ -267,7 +268,7 @@ class YumDownloader(YumUtilBase):
"""do a default setup for all the normal/necessary yum components,
really just a shorthand for testing"""
try:
- self._getRepos()
+ self._getRepos(doSetup = True)
# if '--source' is used the add src to the archlist
if opts.source:
archlist = rpmUtils.arch.getArchList() + ['src']
More information about the Yum-commits
mailing list