From 30b91ea3bcbd1bcc9323a50e59dbaa43ec5c1675 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 27 Jan 2011 22:06:10 +0000 Subject: rename binrepo_delete as it is not only for binrepo --- MgaRepo/commands/del.py | 4 ++-- 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 -- cgit v1.2.1