I have created a patch to make yumdownloader work as non root with an install root.
Can anybody see any problems with this.

i should not affect cli user, because the cli setup code sets, self.conf.cache=1 for nonroot users.

Tim
### Eclipse Workspace Patch 1.0
#P yum
Index: yum/__init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.317
diff -u -r1.317 __init__.py
--- yum/__init__.py     8 Apr 2007 15:59:59 -0000       1.317
+++ yum/__init__.py     13 Apr 2007 11:21:34 -0000
@@ -150,8 +150,6 @@
 
         # who are we:
         self.conf.uid = os.geteuid()
-        if self.conf.uid != 0:
-            self.conf.cache = 1
             
         self.doFileLogSetup(self.conf.uid, self.conf.logfile)
 

_______________________________________________
Yum-devel mailing list
[EMAIL PROTECTED]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to