diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-06-16 16:52:57 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-06-16 16:52:57 +0000 |
commit | 458a9c48b099a01aeb7bd791c3986522647f017e (patch) | |
tree | 38d2b36a2c856c1038ca0a0a75eee467b4b39b72 /RepSys/rpmutil.py | |
parent | 1d782b19feabda115f7a7376f3dc84f8eccb4850 (diff) | |
download | mgarepo-458a9c48b099a01aeb7bd791c3986522647f017e.tar mgarepo-458a9c48b099a01aeb7bd791c3986522647f017e.tar.gz mgarepo-458a9c48b099a01aeb7bd791c3986522647f017e.tar.bz2 mgarepo-458a9c48b099a01aeb7bd791c3986522647f017e.tar.xz mgarepo-458a9c48b099a01aeb7bd791c3986522647f017e.zip |
As requested by mrl, don't relocate back to mirror after commit
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r-- | RepSys/rpmutil.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index 7adb7df..2275744 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -450,16 +450,14 @@ def commit(target=".", message=None): if mirrored: newurl = mirror.switchto_parent(svn, url, target) print "relocated to", newurl - try: - # we can't use the svn object here because pexpect hides VISUAL - mopt = "" - if message is not None: - mopt = "-m \"%s\"" % message - os.system("svn ci %s %s" % (mopt, target)) - finally: - if mirrored: - mirror.switchto_mirror(svn, newurl, target) - print "relocated back to", url + # we can't use the svn object here because pexpect hides VISUAL + mopt = "" + if message is not None: + mopt = "-m \"%s\"" % message + os.system("svn ci %s %s" % (mopt, target)) + if mirrored: + print "use \"repsys switch\" in order to switch back to mirror "\ + "later" def switch(mirrorurl=None): svn = SVN() |