Entropy/ServerInterface:

- toggle_repository(): when switching repos, reload settings


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1712 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-04-12 13:15:51 +00:00
parent 1b8174a35d
commit d6423b0c80
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -11164,6 +11164,10 @@ class ServerInterface(TextInterface):
f.flush()
f.close()
shutil.move(tmpfile,etpConst['serverconf'])
if status:
self.close_server_databases()
const_readServerSettings()
self.setup_services()
return status
def backup_entropy_settings(self):
+2
View File
@@ -1162,6 +1162,8 @@ def const_readServerSettings():
if not os.access(etpConst['serverconf'],os.R_OK):
return
etpConst['server_repositories'].clear()
f = open(etpConst['serverconf'],"r")
serverconf = f.readlines()
f.close()