Revision 85ea6e33
Added by Evgeni Golov about 2 months ago
scripts/compare_deb_repo.py | ||
---|---|---|
for pkg in Packages.iter_paragraphs(remote_packages.text, use_apt_pkg=False):
|
||
source = pkg.get('Source', pkg['Package'])
|
||
version = re.sub(r'\+(debian|ubuntu).*', '', pkg['Version'])
|
||
version = re.sub(r'~fm\d+\.\d+$', '', version)
|
||
if version.startswith('9999-') and release == 'nightly' and source in NIGHTLY_PACKAGES:
|
||
continue
|
||
if NativeVersion(packages[source]) < NativeVersion(version):
|
Also available in: Unified diff
strip ~fmX.Y suffix from version when comparing
in https://github.com/theforeman/jenkins-jobs/commit/a13893edaa37f9b6f475cd5b27349e5c49ccb77a we started to inject `~fmX.Y` into the version of plugin builds, but forgot to strip it here