def __init__(self, sources, stacker_cache_dir=None):
        """
        Process a config's defined package sources.

        Args:
            sources (dict): Package sources from Stacker config dictionary
            stacker_cache_dir (string): Path where remote sources will be
                cached.
        """
        if not stacker_cache_dir:
            stacker_cache_dir = os.path.expanduser("~/.stacker")
        package_cache_dir = os.path.join(stacker_cache_dir, 'packages')
        self.stacker_cache_dir = stacker_cache_dir
        self.package_cache_dir = package_cache_dir
        self.sources = sources
        self.configs_to_merge = []
        self.create_cache_directories()
def __init__ ( self , sources , stacker_cache_dir = None ) : if not stacker_cache_dir : stacker_cache_dir = os . path . expanduser ( "~/.stacker" ) package_cache_dir = os . path . join ( stacker_cache_dir , 'packages' ) self . stacker_cache_dir = stacker_cache_dir self . package_cache_dir = package_cache_dir self . sources = sources self . configs_to_merge = [ ] self . create_cache_directories ( )
Process a config's defined package sources.

        Args:
            sources (dict): Package sources from Stacker config dictionary
            stacker_cache_dir (string): Path where remote sources will be
                cached.