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

No commits found

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 6b2bded

2 years ago

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

2 years ago
Metadata