def sync_repository(self, remote_repository, force, verbose=True): """Sync the cache for a remote repository""" with dlocked(self.path): assert isinstance(remote_repository, RemoteRepository) idx_path = self.get_local_index_path(remote_repository) console.mkdirs(dirname(idx_path)) return remote_repository.download_index(idx_path, force, verbose)
def sync_repository(self, remote_repository, force, verbose=True, interactive=True): """Sync the cache for a remote repository""" with dlocked(self.path): assert isinstance(remote_repository, RemoteRepository) idx_path = self.get_local_index_path(remote_repository) sh.mkdirs(dirname(idx_path)) return remote_repository.download_index( idx_path, force, verbose, interactive=interactive)
def locked(self): """Lock the PyPM environment""" with dlocked(self.pypm_dir): yield
def locked(self): """Lock the PyPM environment""" with dlocked(self.pypm_dir): yield