diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-11-10 16:01:37 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-11-10 16:01:37 +0000 |
commit | 2118671715facec324814a3e834cabaf97fc3f34 (patch) | |
tree | a520fd4c01e6ac4d1c65cbf0454bf6a39bfba3d3 /RepSys | |
parent | c73f73140fe3d18287a50bc04fd367e08e8e0ba8 (diff) | |
download | mgarepo-2118671715facec324814a3e834cabaf97fc3f34.tar mgarepo-2118671715facec324814a3e834cabaf97fc3f34.tar.gz mgarepo-2118671715facec324814a3e834cabaf97fc3f34.tar.bz2 mgarepo-2118671715facec324814a3e834cabaf97fc3f34.tar.xz mgarepo-2118671715facec324814a3e834cabaf97fc3f34.zip |
Make submit compatible with older repsys versions on the server-side
Don't use the new pkg@rev format when the user tries to submit only one
package.
Diffstat (limited to 'RepSys')
-rw-r--r-- | RepSys/commands/submit.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/RepSys/commands/submit.py b/RepSys/commands/submit.py index aefe1ff..88ff596 100644 --- a/RepSys/commands/submit.py +++ b/RepSys/commands/submit.py @@ -149,7 +149,14 @@ def submit(urls, target, define=[], submithost=None): for entry in define: args.append("--define") args.append(entry) - args.extend(urls) + if len(urls) == 1: + # be compatible with server-side repsys versions older than 1.6.90 + url, rev = layout.split_url_revision(urls[0]) + args.append(url) + args.append("-r") + args.append(str(rev)) + else: + args.extend(urls) command = subprocess.list2cmdline(args) status, output = execcmd(command) if status == 0: |