#3419 hub: check release/version format in cg_import
Closed by tkopecek. Opened by tkopecek.
tkopecek/koji issue3418  into  master

Download 3419.patch

Related: https://pagure.io/koji/issue/3418

One more possible check (just sketch), not sure if it is worth it:

d = parse_NVRA(f'{name}-{release}-{version}.{arch}')
if d != dslice(buildinfo, ['name', 'version', 'release', 'arch']):
  raise koji.GenericError()

rebased onto 6b2bded19ad38bbb41a37a2486e8f9b8f44bf41c

We already call koji.check_NVR(buildinfo, strict=True) later in prep_build. Can we figure out why that check isn't working rather than duplicating it?

Casual testing on my local instance shows the existing check appears to be working.

Pull-Request has been closed by tkopecek

Metadata