[Mageia-sysadm] [356] remove all paths passed as argument

root at mageia.org root at mageia.org
Thu Jan 27 21:31:40 CET 2011


Revision: 356
Author:   boklm
Date:     2011-01-27 21:31:39 +0100 (Thu, 27 Jan 2011)
Log Message:
-----------
remove all paths passed as argument

Modified Paths:
--------------
    build_system/mgarepo/trunk/MgaRepo/rpmutil.py

Modified: build_system/mgarepo/trunk/MgaRepo/rpmutil.py
===================================================================
--- build_system/mgarepo/trunk/MgaRepo/rpmutil.py	2011-01-27 19:19:30 UTC (rev 355)
+++ build_system/mgarepo/trunk/MgaRepo/rpmutil.py	2011-01-27 20:31:39 UTC (rev 356)
@@ -669,7 +669,8 @@
     refurl = binrepo.svn_root(paths[0])
     if not binrepo.enabled(refurl):
         raise Error, "binary repository is not enabled for %s" % refurl
-    binrepo.remove(paths[0])
+    for path in paths:
+        binrepo.remove(path)
 
 def switch(mirrorurl=None):
     svn  = SVN()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110127/f052795e/attachment.html>


More information about the Mageia-sysadm mailing list