diff options
author | James Meyer <james.meyer@operamail.com> | 2010-01-04 02:42:48 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-01-04 02:42:48 (GMT) |
commit | 45a963faa570607a72cbcddbd6a3690a808c5ac0 (patch) | |
tree | ea3ccb838fd800789e06e452f09064483f4e503e /build_tools/bin | |
parent | d0ab2894c2f1b80d0e75b8ef40e0dd150d74f0ec (diff) | |
download | linhes_dev-45a963faa570607a72cbcddbd6a3690a808c5ac0.zip |
bld: hook up switch to local/remote menu
Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'build_tools/bin')
-rw-r--r-- | build_tools/bin/bld_resource.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 |