Add a global accessor for getting an instance of the PackageRepository.

Review Request #7731 — Created Oct. 24, 2015 and submitted

Information

rbpkg
master

Reviewers

This adds a get_repository() function that returns a single instance of
PackageRepository. This allows multiple call sites to share the same
caches.

A method to PackageRepository has also been added to clear out the
caches, which unit tests call to ensure they don't stomp all over each
other.

Unit tests making use of this in an upcoming change pass.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbpkg/repository/package_repo.py
        rbpkg/testing/testcases.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbpkg/repository/package_repo.py
        rbpkg/testing/testcases.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (d5f4641)
Loading...