#204 fedpkg does not work with Bodhi betas
Closed: Fixed Opened by bowlofeggs.

When I use fedpkg update with a Bodhi beta, I get an error:

$ fedpkg update
Could not execute update: Could not generate update request: invalid literal for int() with base 10: '0b0'

Ah, I found it - it turns out that fedpkg does not work with Bodhi betas, because they end up with a version that ends in b0. The _get_bodhi_version() function has this line:

return [int(component) for component in version.split('.')]

For the purposes of fedpkg, only the major version is really needed (and we would want to interpret that as an int) - perhaps it would be better to make the code only look at the major version and ignore the .y.z components of the version?

In any case, this issue is certainly not high priority.

Metadata Update from @cqi:
- Issue tagged with: bodhi

Metadata Update from @cqi:
- Issue set to the milestone: NEXT

Metadata Update from @cqi:
- Issue set to the milestone: 1.33 (was: NEXT)

Metadata Update from @cqi:
- Issue assigned to cqi

PR: https://pagure.io/fedpkg/pull-request/212

Commit 84abec93 fixes this issue

Metadata