1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 10:16:14 +01:00

Support larger uids and gids

This commit is contained in:
Sean Kelly 2018-06-25 16:12:41 -04:00
parent b730f880cf
commit b42e6f5e04

View File

@ -596,7 +596,7 @@ def main(apiurl, opts, argv):
if opts.build_uid:
build_uid = opts.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':
buildargs.append('--uid=%s:%s' % (os.getuid(), os.getgid()))
elif buildidre.match(build_uid):