[Mageia-sysadm] [361] rename binrepo_delete as it is not only for binrepo
root at mageia.org
root at mageia.org
Thu Jan 27 23:06:10 CET 2011
Revision: 361
Author: boklm
Date: 2011-01-27 23:06:10 +0100 (Thu, 27 Jan 2011)
Log Message:
-----------
rename binrepo_delete as it is not only for binrepo
Modified Paths:
--------------
build_system/mgarepo/trunk/MgaRepo/commands/del.py
build_system/mgarepo/trunk/MgaRepo/rpmutil.py
Modified: build_system/mgarepo/trunk/MgaRepo/commands/del.py
===================================================================
--- build_system/mgarepo/trunk/MgaRepo/commands/del.py 2011-01-27 22:04:38 UTC (rev 360)
+++ build_system/mgarepo/trunk/MgaRepo/commands/del.py 2011-01-27 22:06:10 UTC (rev 361)
@@ -1,6 +1,6 @@
from MgaRepo import Error
from MgaRepo.command import *
-from MgaRepo.rpmutil import binrepo_delete
+from MgaRepo.rpmutil import delete
HELP = """\
Usage: mgarepo del [OPTIONS] [PATH]
@@ -22,4 +22,4 @@
return opts
def main():
- do_command(parse_options, binrepo_delete)
+ do_command(parse_options, delete)
Modified: build_system/mgarepo/trunk/MgaRepo/rpmutil.py
===================================================================
--- build_system/mgarepo/trunk/MgaRepo/rpmutil.py 2011-01-27 22:04:38 UTC (rev 360)
+++ build_system/mgarepo/trunk/MgaRepo/rpmutil.py 2011-01-27 22:06:10 UTC (rev 361)
@@ -673,7 +673,7 @@
message = "%s: new file %s" % (silent, path)
svn.commit(path, log=message)
-def binrepo_delete(paths, commit=True):
+def delete(paths, commit=True):
refurl = binrepo.svn_root(paths[0])
if not binrepo.enabled(refurl):
raise Error, "binary repository is not enabled for %s" % refurl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110127/37e0d070/attachment-0001.html>
More information about the Mageia-sysadm
mailing list