Add utilities for finding channels, releases and rules in packages.

Review Request #7725 — Created Oct. 22, 2015 and submitted

Information

rbpkg
master

Reviewers

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.

Description From Last Updated

lists rules?

daviddavid
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbpkg/repository/package_rules.py
        rbpkg/repository/tests/test_package_bundle.py
        rbpkg/repository/tests/test_package_channel.py
        rbpkg/repository/package_channel.py
        rbpkg/repository/package_bundle.py
        rbpkg/repository/tests/test_package_rules.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbpkg/repository/package_rules.py
        rbpkg/repository/tests/test_package_bundle.py
        rbpkg/repository/tests/test_package_channel.py
        rbpkg/repository/package_channel.py
        rbpkg/repository/package_bundle.py
        rbpkg/repository/tests/test_package_rules.py
    
    
  2. 
      
david
  1. 
      
  2. rbpkg/repository/package_channel.py (Diff revision 1)
     
     
    Show all issues

    lists rules?

  3. 
      
chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbpkg/repository/package_rules.py
        rbpkg/repository/tests/test_package_bundle.py
        rbpkg/repository/tests/test_package_channel.py
        rbpkg/repository/package_channel.py
        rbpkg/repository/package_bundle.py
        rbpkg/repository/tests/test_package_rules.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbpkg/repository/package_rules.py
        rbpkg/repository/tests/test_package_bundle.py
        rbpkg/repository/tests/test_package_channel.py
        rbpkg/repository/package_channel.py
        rbpkg/repository/package_bundle.py
        rbpkg/repository/tests/test_package_rules.py
    
    
  2. 
      
chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbpkg/repository/package_rules.py
        rbpkg/repository/tests/test_package_bundle.py
        rbpkg/repository/tests/test_package_channel.py
        rbpkg/repository/package_channel.py
        rbpkg/repository/package_bundle.py
        rbpkg/repository/tests/test_package_rules.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbpkg/repository/package_rules.py
        rbpkg/repository/tests/test_package_bundle.py
        rbpkg/repository/tests/test_package_channel.py
        rbpkg/repository/package_channel.py
        rbpkg/repository/package_bundle.py
        rbpkg/repository/tests/test_package_rules.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (354fcd7)