Add utilities for finding channels, releases and rules in packages.
Review Request #7725 — Created Oct. 22, 2015 and submitted — Latest diff uploaded
This adds a handful of utility functions that make it easy to get data on packages that match certain criteria, such as rules that match a version and the current system, or the current release channel. Unit tests were added for each of these cases.
Unit tests pass.
Used these in a custom command that tested this functionality.
rbpkg/repository/package_bundle.py |
---|
rbpkg/repository/package_channel.py |
---|
rbpkg/repository/package_rules.py |
---|
rbpkg/repository/tests/test_package_bundle.py |
---|
rbpkg/repository/tests/test_package_channel.py |
---|
rbpkg/repository/tests/test_package_rules.py |
---|