[Mageia-sysadm] [364] delete and upload are expecting a list as first argument

root at mageia.org root at mageia.org
Thu Jan 27 23:58:03 CET 2011


Revision: 364
Author:   boklm
Date:     2011-01-27 23:58:03 +0100 (Thu, 27 Jan 2011)
Log Message:
-----------
delete and upload are expecting a list as first 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 22:48:48 UTC (rev 363)
+++ build_system/mgarepo/trunk/MgaRepo/rpmutil.py	2011-01-27 22:58:03 UTC (rev 364)
@@ -566,11 +566,11 @@
     for path in toremove:
         print "D\t%s" % path
         if not dryrun:
-            delete(path, commit=commit)
+            delete([path], commit=commit)
     for path in toadd:
         print "A\t%s" % path
         if not dryrun:
-            upload(path, commit=commit)
+            upload([path], commit=commit)
 
 def commit(target=".", message=None, logfile=None):
     svn = SVN()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110127/afa81e1c/attachment.html>


More information about the Mageia-sysadm mailing list