Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-12-SP2:Checks
rpmlint
fix-versioned-prereq.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-versioned-prereq.diff of Package rpmlint
--- Pkg.py +++ Pkg.py @@ -403,10 +403,19 @@ current_version=d[1] if current_version.find(':') > 0: current_version=''.join(current_version.split(':')[1:]) - if d[2] & rpm.RPMSENSE_EQUAL != rpm.RPMSENSE_EQUAL or current_version != version: - return 0 - else: - return 1 + + if d[2] & rpm.RPMSENSE_EQUAL: + if current_version == version: + return 1 + + if d[2] & rpm.RPMSENSE_GREATER: + if current_version.count('.') > version.count('.'): + current_version = '.'.join(current_version.split('.')[0:version.count('.')]) + + if current_version == version: + return 1 + + return 0 return 0 def conflicts(self):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor