summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-12-26 22:01:30 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-12-27 12:42:11 +0100
commitf55e3c21c6a6ab01bd94c90a8910c44b7596660a (patch)
tree4b25bbf7cff03a4630786214116680faab76a26b /scripts
parent495455c28e5364e58f8ac93b9526e91e2be9aac0 (diff)
mkpkglists.py: Honor database socket setting
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkpkglists.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mkpkglists.py b/scripts/mkpkglists.py
index 173f5f7..0f2eb84 100755
--- a/scripts/mkpkglists.py
+++ b/scripts/mkpkglists.py
@@ -15,10 +15,11 @@ aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name')
aur_db_user = config.get('database', 'user')
aur_db_pass = config.get('database', 'password')
+aur_db_socket = config.get('database', 'socket')
db = mysql.connector.connect(host=aur_db_host, user=aur_db_user,
passwd=aur_db_pass, db=aur_db_name,
- buffered=True)
+ unix_socket=aur_db_socket, buffered=True)
cur = db.cursor()
datestr = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")