mercury_engine_data_structures/pkg_editor.py
def ensure_present(self, pkg_name: str, asset_id: NameOrAssetId):
        """
        Ensures the given pkg has the give assets, collecting from other pkgs if needed.
        """
        if pkg_name not in self._ensured_asset_ids:
            raise ValueError(f"Unknown pkg_name: {pkg_name}")
        asset_id = resolve_asset_id(asset_id)

        # If the pkg already has the given asset, do nothing
        if pkg_name not in self._files_for_asset_id[asset_id]:
            self._ensured_asset_ids[pkg_name].add(asset_id)

        Ensures the given pkg has the give assets, collecting from other pkgs if needed.
        
Ensures the given pkg has the give assets, collecting from other pkgs if needed.
Ensures the given pkg has the give assets collecting from other pkgs if needed .
def ensure_present(self, pkg_name: str, asset_id: NameOrAssetId):
        if pkg_name not in self._ensured_asset_ids:
            raise ValueError(f"Unknown pkg_name: {pkg_name}")
        asset_id = resolve_asset_id(asset_id)
        if pkg_name not in self._files_for_asset_id[asset_id]:
            self._ensured_asset_ids[pkg_name].add(asset_id)
def ensure_present ( self , pkg_name : str , asset_id : NameOrAssetId ) : if pkg_name not in self . _ensured_asset_ids : raise ValueError ( f"Unknown pkg_name: {pkg_name}" ) asset_id = resolve_asset_id ( asset_id ) if pkg_name not in self . _files_for_asset_id [ asset_id ] : self . _ensured_asset_ids [ pkg_name ] . add ( asset_id )
Ensures the given pkg has the give assets, collecting from other pkgs if needed.
Ensures the given pkg has the give assets collecting from other pkgs if needed .
"""
        Ensures the given pkg has the give assets, collecting from other pkgs if needed.
        """ # If the pkg already has the given asset, do nothing
self
pkg_name
str
asset_id
NameOrAssetId