[obs-commits] [openSUSE/osc] cd51f4: Return bytes in packagequery.PackageQueryResult.ev...
Branch: refs/heads/master Home: https://github.com/openSUSE/osc Commit: cd51f47a77b39ae54edc698305a9f4a30ed5588a https://github.com/openSUSE/osc/commit/cd51f47a77b39ae54edc698305a9f4a30ed55... Author: Marcus Huewe <suse-tux@gmx.de> Date: 2020-03-15 (Sun, 15 Mar 2020) Changed paths: M osc/build.py M osc/util/packagequery.py Log Message: ----------- Return bytes in packagequery.PackageQueryResult.evr() instead of a str The packagequery.PackageQueryResult class is supposed to provide a bytes API. Hence, packagequery.PackageQueryResult.evr() should return bytes instead of a str. Also, adjust the single caller in the build module. Commit: 55aef1a014782f02a907c6ae11e9a3f92d3e7a0e https://github.com/openSUSE/osc/commit/55aef1a014782f02a907c6ae11e9a3f92d3e7... Author: Marcus Huewe <suse-tux@gmx.de> Date: 2020-03-15 (Sun, 15 Mar 2020) Changed paths: M osc/util/repodata.py Log Message: ----------- Convert repodata.RepoDataQueryResult to a bytes API The repodata.RepoDataQueryResult is supposed to be a bytes API and that's what our users (see build module) expect. Note that the repodata.RepoDataQueryResult.path method still returns a str. That's what the rpmquery.RpmQuery, debquery.DebQuery, and archquery.ArchQuery classes also do (if the "path" was initially passed as a str). Fixes: #760 ("osc build fails when called with --prefer-pkgs where the passed directory is a repodata repository or a subdirectory of one") Commit: 894f1c281a4bfa675e86e20393152f510fe73be7 https://github.com/openSUSE/osc/commit/894f1c281a4bfa675e86e20393152f510fe73... Author: Marcus Huewe <suse-tux@gmx.de> Date: 2020-03-25 (Wed, 25 Mar 2020) Changed paths: M osc/build.py M osc/util/packagequery.py M osc/util/repodata.py Log Message: ----------- Merge branch 'packagequery_bytes_fixes' of https://github.com/marcus-h/osc bytes fixes/cleanups in the packagequery and repodata modules. Compare: https://github.com/openSUSE/osc/compare/b99c4486e885...894f1c281a4b
participants (1)
-
Marcus Hüwe