1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00

Merge branch 'support-larger-ids' of https://github.com/Cray/osc

Since uid_t/gid_t are system dependent there is no reason to enforce
an "arbitrary" upper bound.
This commit is contained in:
Marcus Huewe 2018-06-26 09:12:13 +02:00
commit 8728a071ca

View File

@ -596,7 +596,7 @@ def main(apiurl, opts, argv):
if opts.build_uid: if opts.build_uid:
build_uid = opts.build_uid build_uid = opts.build_uid
if build_uid: if build_uid:
buildidre = re.compile('^[0-9]{1,5}:[0-9]{1,5}$') buildidre = re.compile('^[0-9]+:[0-9]+$')
if build_uid == 'caller': if build_uid == 'caller':
buildargs.append('--uid=%s:%s' % (os.getuid(), os.getgid())) buildargs.append('--uid=%s:%s' % (os.getuid(), os.getgid()))
elif buildidre.match(build_uid): elif buildidre.match(build_uid):