diff options
-rw-r--r-- | MgaRepo/commands/del.py | 4 | ||||
-rw-r--r-- | MgaRepo/rpmutil.py | 2 |
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 |