mo = NAME_RE.match(tag)
if mo is None:
- return None, None, None
+ return None, None, None, None
ref = mo.group(1)
short_sha1 = mo.group(2)
el = mo.group(3)
- return ref, short_sha1, el
+ arch = mo.group(4)
+ return ref, short_sha1, el, arch
def query_shaman(ref, sha1, el):
return response
-def ref_present_in_shaman(tag, verbose):
+def ref_present_in_shaman(ref, short_sha1, el, arch, verbose):
- ref, short_sha1, el = parse_quay_tag(tag['name'])
if ref is None:
return False
for match in matches:
if match['sha1'][0:7] == short_sha1:
if verbose:
- print('Found %s in shaman: sha1 %s quayname %s' %
- (ref, match['sha1'], tag['name']))
+ print('Found %s in shaman: sha1 %s' % (ref, match['sha1']))
short_sha1_cache.add(short_sha1)
return True
return False
print('Skipping deleted-or-overwritten tag %s' % name)
continue
- ref, short_sha1, el = parse_quay_tag(name)
+ ref, short_sha1, el, arch = parse_quay_tag(name)
if ref is None:
'''
if args.verbose:
print(
- 'Skipping %s, not in ref-shortsha1-el form' % name
+ 'Skipping %s, not in ref-shortsha1-el-arch form' % name
)
'''
continue
- if ref_present_in_shaman(tag, args.verbose):
+ if ref_present_in_shaman(ref, short_sha1, el, arch, args.verbose):
if args.verbose:
print('Skipping %s, present in shaman' % name)
continue