aboutsummaryrefslogtreecommitdiffstats
path: root/repsys
diff options
context:
space:
mode:
authorMageia SVN-Git Migration <svn-git-migration@mageia.org>2011-01-04 16:09:44 +0000
committerMageia SVN-Git Migration <svn-git-migration@mageia.org>2011-01-04 16:09:44 +0000
commit846c9e0ef180aa5411803eb1906896dc5e2fc5b9 (patch)
treef82d50447e2f648e76d051cb20ca4c44b1dde8a8 /repsys
parent085ad0c1554260fe8f87955ed1ba74e06413f416 (diff)
downloadmgarepo-846c9e0ef180aa5411803eb1906896dc5e2fc5b9.tar
mgarepo-846c9e0ef180aa5411803eb1906896dc5e2fc5b9.tar.gz
mgarepo-846c9e0ef180aa5411803eb1906896dc5e2fc5b9.tar.bz2
mgarepo-846c9e0ef180aa5411803eb1906896dc5e2fc5b9.tar.xz
mgarepo-846c9e0ef180aa5411803eb1906896dc5e2fc5b9.zip
Synthesized commit during git-svn import combining previous Mandriva history with Magiea.
This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r202 | boklm | 2011-01-04 16:09:44 +0000 (Tue, 04 Jan 2011) | 1 line add repsys ------------------------------------------------------------------------
Diffstat (limited to 'repsys')
-rwxr-xr-xrepsys9
1 files changed, 4 insertions, 5 deletions
diff --git a/repsys b/repsys
index 9169e4a..e68f3a8 100755
--- a/repsys
+++ b/repsys
@@ -4,7 +4,7 @@ from RepSys.command import *
import getopt
import sys
-VERSION="1.7"
+VERSION="1.9-binrepo"
HELP = """\
Usage: repsys COMMAND [COMMAND ARGUMENTS]
@@ -53,12 +53,8 @@ def parse_options():
parser.add_option("--help-plugins", action="callback", callback=plugin_help)
parser.add_option("--help-plugin", type="string", dest="__ignore",
action="callback", callback=plugin_help)
- parser.add_option("--no-mirror", "-M", action="store_false",
- dest="_mirror", default=True)
opts, args = parser.parse_args()
- config.set("global", "use-mirror", opts._mirror and "yes" or "no")
del opts.__ignore
- del opts._mirror
if len(args) < 1:
parser.print_help(sys.stderr)
sys.exit(1)
@@ -72,6 +68,8 @@ def dispatch_command(command, argv, debug=0):
command = command_aliases[command]
except KeyError:
pass
+ if debug:
+ config.set("global", "verbose", "yes")
try:
repsys_module = __import__("RepSys.commands."+command)
commands_module = getattr(repsys_module, "commands")
@@ -89,6 +87,7 @@ if __name__ == "__main__":
except Error, e:
sys.stderr.write("plugin initialization error: %s\n" % e)
sys.exit(1)
+ config.set("global", "repsys-cmd", sys.argv[0])
do_command(parse_options, dispatch_command)
# vim:et:ts=4:sw=4