Entropy/ServerInterface/DatabaseInterface:

- fix two typos

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1682 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-04-10 23:17:32 +00:00
parent f9dfb3fbe6
commit b65904f669
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -154,7 +154,7 @@ class etpDatabase:
# if we arrive here, it is because all the mirrors are unlocked
self.ServiceInterface.MirrorsService.lock_mirrors(True, repo = self.server_repo)
self.ServiceInterface.MirrorsService.sync_databases(noUpload, repo = repo)
self.ServiceInterface.MirrorsService.sync_databases(noUpload, repo = self.server_repo)
def closeDB(self):
@@ -266,7 +266,6 @@ class etpDatabase:
def serverUpdatePackagesData(self):
etpConst['treeupdatescalled'] = True
repository = self.server_repo
repo_updates_file = self.ServiceInterface.get_local_database_treeupdates_file(self.server_repo)
doRescan = False
+2 -2
View File
@@ -12595,7 +12595,7 @@ class ServerInterface(TextInterface):
class ServerMirrorsInterface:
import entropyTools, dumpTools
def __init__(self, ServerInstance):
def __init__(self, ServerInstance, repo = None):
if not isinstance(ServerInstance,ServerInterface):
raise exceptionTools.IncorrectParameter("IncorrectParameter: a valid ServerInterface based instance is needed")
@@ -12610,7 +12610,7 @@ class ServerMirrorsInterface:
type = "info",
header = red(" @@ ")
)
for mirror in self.Entropy.get_remote_mirrors():
for mirror in self.Entropy.get_remote_mirrors(repo):
mirror = self.entropyTools.hideFTPpassword(mirror)
self.Entropy.updateProgress(
blue("mirror: %s") % (darkgreen(mirror),),