#294: Detect required Fedora releases correctly --------------------+------------------------------------------------------- Reporter: kparal | Owner: vhumpa Type: defect | Status: assigned Priority: major | Milestone: 0.5.0 Component: core | Resolution: Keywords: | --------------------+------------------------------------------------------- Old description:
Currently we use this approach in control.autoqa to require a specific Fedora release for a test run: {{{ # if we want to install the package, we must have this test running on # Fedora release corresponding to the package; thus the autotest label of the # correct distribution must be present (like 'fc13'); let's strip it from the # NVR (last part) if autoqa_args.has_key('nvr'): labels.append(autoqa_args['nvr'].split('.')[-1]) }}}
That is incorrect, because the package may look like foo-1.1-1.i686.fc15.1 . We have to use a different way.
New description:
Currently we use this approach in control.autoqa to require a specific Fedora release for a test run: {{{ # if we want to install the package, we must have this test running on # Fedora release corresponding to the package; thus the autotest label of the # correct distribution must be present (like 'fc13'); let's strip it from the # NVR (last part) if autoqa_args.has_key('nvr'): labels.append(autoqa_args['nvr'].split('.')[-1]) }}}
That is incorrect, because the package may look like foo-1.1-1.fc15.1 (.i686.rpm). This style is even recommended sometimes [1]. We have to use a different way.
[1] https://fedoraproject.org/wiki/Packaging/NamingGuidelines#Minor_release_bump...