aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-01-27 22:06:10 +0000
committerNicolas Vigier <boklm@mageia.org>2011-01-27 22:06:10 +0000
commit30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675 (patch)
treea8f845027a18b0ffb1794fe1faa2f930d33ba61a
parent997ebea7a09b1390e4a202429b4bfa1e0ff2db96 (diff)
downloadmgarepo-30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675.tar
mgarepo-30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675.tar.gz
mgarepo-30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675.tar.bz2
mgarepo-30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675.tar.xz
mgarepo-30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675.zip
rename binrepo_delete as it is not only for binrepo
-rw-r--r--MgaRepo/commands/del.py4
-rw-r--r--MgaRepo/rpmutil.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/MgaRepo/commands/del.py b/MgaRepo/commands/del.py
index c55d1aa..f61a1d5 100644
--- a/MgaRepo/commands/del.py
+++ b/MgaRepo/commands/del.py
@@ -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 @@ def parse_options():
return opts
def main():
- do_command(parse_options, binrepo_delete)
+ do_command(parse_options, delete)
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 14789f3..76d7c7a 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -673,7 +673,7 @@ def upload(paths, commit=True):
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