summaryrefslogtreecommitdiffstats
path: root/scripts/git-integration/git-update.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-integration/git-update.py')
-rwxr-xr-xscripts/git-integration/git-update.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/git-integration/git-update.py b/scripts/git-integration/git-update.py
index c20eede1..74a55b58 100755
--- a/scripts/git-integration/git-update.py
+++ b/scripts/git-integration/git-update.py
@@ -17,6 +17,7 @@ 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')
def save_srcinfo(srcinfo, db, cur, user):
# Obtain package base ID and previous maintainer.
@@ -206,7 +207,7 @@ srcinfo = aurinfo.ParseAurinfoFromIterable(srcinfo_raw)
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()
save_srcinfo(srcinfo, db, cur, user)
db.close()