summaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-01-04 02:42:48 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-01-04 02:42:48 (GMT)
commit45a963faa570607a72cbcddbd6a3690a808c5ac0 (patch)
treeea3ccb838fd800789e06e452f09064483f4e503e /build_tools
parentd0ab2894c2f1b80d0e75b8ef40e0dd150d74f0ec (diff)
downloadlinhes_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')
-rw-r--r--build_tools/bin/bld_resource.py6
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