mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
- fixed 'project/package/repository/arch' support
This commit is contained in:
parent
612ac35f28
commit
8c50908891
@ -2803,7 +2803,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
osc remotebuildlog project/package/repository/arch
|
||||
${cmd_option_list}
|
||||
"""
|
||||
if len(args) == 1:
|
||||
if len(args) == 1 and args[0].startswith('http'):
|
||||
apiurl, project, package, repository, arch = parse_buildlogurl(args[0])
|
||||
else:
|
||||
args = slash_split(args)
|
||||
|
@ -33,7 +33,7 @@ except ImportError:
|
||||
|
||||
|
||||
DISTURL_RE = re.compile(r"^(?P<bs>.*)://(?P<apiurl>.*?)/(?P<project>.*?)/(?P<repository>.*?)/(?P<revision>.*)-(?P<source>.*)$")
|
||||
BUILDLOGURL_RE = re.compile(r"^(?P<apiurl>https://.*?)/build/(?P<project>.*?)/(?P<repository>.*?)/(?P<arch>.*?)/(?P<package>.*?)/_log$")
|
||||
BUILDLOGURL_RE = re.compile(r"^(?P<apiurl>https?://.*?)/build/(?P<project>.*?)/(?P<repository>.*?)/(?P<arch>.*?)/(?P<package>.*?)/_log$")
|
||||
BUFSIZE = 1024*1024
|
||||
store = '.osc'
|
||||
|
||||
@ -1714,7 +1714,7 @@ def parse_buildlogurl(buildlogurl):
|
||||
|
||||
m = BUILDLOGURL_RE.match(buildlogurl)
|
||||
if not m:
|
||||
raise oscerr.WrongArgs("`%s' does not look like url with a build log" % buildlogurl)
|
||||
raise oscerr.WrongArgs('\'%s\' does not look like url with a build log' % buildlogurl)
|
||||
|
||||
return (m.group('apiurl'), m.group('project'), m.group('package'), m.group('repository'), m.group('arch'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user