summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2016-09-21 21:50:17 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2016-09-29 22:07:24 +0200
commitcc66259d339ec805265503662bf5da61f63512cc (patch)
treec7c04503a241af68dc02c79ee3c48b3ef1537d92 /scripts
parentd00f4c5197652563a61628461a39fd799264c9c4 (diff)
aurblup: Drop support for multiple servers
Support for multiple servers has never been used by the official aurweb setup and the current implementation makes it impossible to use server URIs that contain spaces. For simplicity, change the implementation such that only a single server is supported. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/aurblup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/aurblup.py b/scripts/aurblup.py
index 0009715..1b6de2f 100755
--- a/scripts/aurblup.py
+++ b/scripts/aurblup.py
@@ -8,7 +8,7 @@ import aurweb.db
db_path = aurweb.config.get('aurblup', 'db-path')
sync_dbs = aurweb.config.get('aurblup', 'sync-dbs').split(' ')
-servers = aurweb.config.get('aurblup', 'servers').split(' ')
+server = aurweb.config.get('aurblup', 'server')
def main():
@@ -19,7 +19,7 @@ def main():
h = pyalpm.Handle("/", db_path)
for sync_db in sync_dbs:
repo = h.register_syncdb(sync_db, pyalpm.SIG_DATABASE_OPTIONAL)
- repo.servers = [server.replace("%s", sync_db) for server in servers]
+ repo.servers = [server.replace("%s", sync_db)]
t = h.init_transaction()
repo.update(False)
t.release()