mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-15 14:57:17 +01:00
Returning None breaks ArchQuery.vercmp. Returning b'0' is ok because an epoch, if present, is always supposed to be an integer (at least in a "valid" arch package (see scripts/libmakepkg/lint_pkgbuild/epoch.sh.in in the pacman sources)). Hence, if we compare the epoch of a package, which has no explicit epoch set, with the epoch of a package, which has an explicit epoch set, we always have a <= relation.