From 2118671715facec324814a3e834cabaf97fc3f34 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Mon, 10 Nov 2008 16:01:37 +0000 Subject: 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. --- RepSys/commands/submit.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1