From 45a963faa570607a72cbcddbd6a3690a808c5ac0 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sun, 3 Jan 2010 20:42:48 -0600 Subject: bld: hook up switch to local/remote menu Signed-off-by: James Meyer --- build_tools/bin/bld_resource.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_tools/bin/bld_resource.py b/build_tools/bin/bld_resource.py index 566fda6..0a167ab 100644 --- a/build_tools/bin/bld_resource.py +++ b/build_tools/bin/bld_resource.py @@ -2822,9 +2822,15 @@ class Ui_MainWindow(object): def switch_pacman_to_loca(self): print "switch to local" + cmd='''sed -i "s/Server = http\:.*knoppmyth.net.*$/ Server = file:\/\/data\/pkg_repo\/i686\/\$repo/g" /etc/pacman.conf''' + os.system(cmd) + self.updatePacmanDB() def switch_pacman_to_remote(self): print "switch to remote" + cmd='''sed -i "s/Server = file.*$/ Server = http:\/\/knoppmyth.net\/repo\/i686\/\$repo/g" /etc/pacman.conf''' + os.system(cmd) + self.updatePacmanDB() def save_config_settings(self): from __main__ import settings_dict -- cgit v0.12