Description of problem: fedfind.release.get_release bad output for rawhide url on a PowerPC machine installed with Fedora f26. I would expect release 27 (or 28) but get '26' as detailed by output of python snipet code below. === print "For location: {0}".format(location) try: rel = fedfind.release.get_release(url=location) print "cid and release:", rel.cid, rel.release except ValueError: print "Could not find a release at {0}".format(location) return version = rel.release try: currrel = str(fedfind.helpers.get_current_release()) prevrel = str(int(currrel) - 1) except ValueError: currrel = prevrel = "FEDFINDERROR" print "passed version: ", version print "current release: ", currrel print "previous release: ", prevrel === For location: https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose cid and release: Fedora-Rawhide-20171121.n.0 rawhide passed version: rawhide current release: 26 previous release: 25 === * the PowerPC machine is updated with last available fedfind rpms === $dnf repolist --enabled -v |grep -E 'Repo-id|metalink' Repo-id : fedora Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=fedora-26&arch=ppc64le Repo-id : updates Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=updates-released-f26&arch=ppc64le === $rpm -qa |grep fedfind python3-fedfind-3.7.1-1.fc26.noarch python2-fedfind-3.7.1-1.fc26.noarch fedfind-3.7.1-1.fc26.noarch ===
If I build locally the last available fedfind version (3.8.3) and install it in my fedora 26 machine then there is no more failure: === $rpm -qa |grep fedfind python2-fedfind-3.8.3-1.fc26.noarch fedfind-3.8.3-1.fc26.noarch python3-fedfind-3.8.3-1.fc26.noarch === For location: https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose cid and release: Fedora-Rawhide-20171121.n.0 rawhide passed version: rawhide current release: 27 previous release: 26 === So need to provide last fedfind version for f26 and f27 repositories.
It is in updates-testing.
fedfind 3.8.3 went stable for everything now, so closing. Note just for reference: the errors here had nothing to do with the particular release instance you were getting. `get_current_release()` is a standalone helper function, you can just import fedfind.helpers and then call it, you don't have to instantiate any Release class before, or even import fedfind.release at all.