[aur-dev] [PATCH] mkpkglists: Use the main configuration file
archlinux at cryptocrack.de
archlinux at cryptocrack.de
Fri Oct 24 08:04:54 UTC 2014
From: Lukas Fleischer <archlinux at cryptocrack.de>
Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
scripts/config.proto | 5 -----
scripts/mkpkglists.py | 2 +-
2 files changed, 1 insertion(+), 6 deletions(-)
delete mode 100644 scripts/config.proto
diff --git a/scripts/config.proto b/scripts/config.proto
deleted file mode 100644
index 4cac94f..0000000
--- a/scripts/config.proto
+++ /dev/null
@@ -1,5 +0,0 @@
-[database]
-host = localhost
-name = AUR
-user = aur
-password = aur
diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py
index c208fd1..173f5f7 100755
--- a/scripts/mkpkglists.py
+++ b/scripts/mkpkglists.py
@@ -9,7 +9,7 @@ import os
docroot = os.path.dirname(os.path.realpath(__file__)) + "/../web/html/"
config = configparser.RawConfigParser()
-config.read(os.path.dirname(os.path.realpath(__file__)) + "/config")
+config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name')
--
2.1.2
More information about the aur-dev
mailing list