Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def locked(self):
     """Lock the PyPM environment"""
     with dlocked(self.pypm_dir):
         yield
Ejemplo n.º 4
0
 def locked(self):
     """Lock the PyPM environment"""
     with dlocked(self.pypm_dir):
         yield