Entropy/ServerInterface:

- kill activatoruploaduris kill kill


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1677 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-04-10 15:50:50 +00:00
parent dcd704ace0
commit 7bdc16f164
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ class etpDatabase:
header = red(" * "),
back = True
)
for uri in etpConst['activatoruploaduris']:
for uri in self.ServiceInterface.get_remote_mirrors():
given_up = self.ServiceInterface.MirrorsService.mirror_lock_check(uri)
if given_up:
crippled_uri = self.entropyTools.extractFTPHostFromUri(uri)
+8 -4
View File
@@ -11042,7 +11042,7 @@ class ServerInterface(TextInterface):
self.dumpTools = self.ClientService.dumpTools
self.backup_entropy_settings()
self.SpmService = self.ClientService.Spm()
mirrors = etpConst['server_repositories'][self.default_repository]['mirrors']
mirrors = self.get_remote_mirrors()
self.MirrorsService = ServerMirrorsInterface(self, mirrors = mirrors)
def setup_entropy_settings(self):
@@ -11559,6 +11559,10 @@ class ServerInterface(TextInterface):
dbconn.taintDatabase()
self.close_server_database(dbconn)
def get_remote_mirrors(self):
x = self.default_repository
return etpConst['server_repositories'][x]['mirrors']
def get_remote_packages_relative_path(self):
x = self.default_repository
return etpConst['server_repositories'][x]['packages_relative_path']
@@ -11976,7 +11980,7 @@ class ServerInterface(TextInterface):
not_match = set()
broken_packages = {}
for uri in etpConst['activatoruploaduris']:
for uri in self.get_remote_mirrors():
crippled_uri = self.entropyTools.extractFTPHostFromUri(uri)
self.updateProgress(
@@ -12220,7 +12224,7 @@ class ServerInterface(TextInterface):
type = "info",
header = " "
)
for uri in etpConst['activatoruploaduris']:
for uri in self.get_remote_mirrors():
if not_downloaded:
self.updateProgress(
@@ -12499,7 +12503,7 @@ class ServerInterface(TextInterface):
back = True
)
for uri in etpConst['activatoruploaduris']:
for uri in self.get_remote_mirrors():
crippled_uri = self.entropyTools.extractFTPHostFromUri(uri)
self.updateProgress(