summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2015-01-06 23:32:51 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2015-01-06 23:33:43 +0100
commitbf7717ac132030ea22b7bfd32898c639f1fcb665 (patch)
tree8118b537c5622409f470f5d5e68a1641f9b2efe6 /scripts
parent02dd9c518f659b97dd0d301b975cf3887be5b7d8 (diff)
downloadaur-bf7717ac132030ea22b7bfd32898c639f1fcb665.tar.gz
aur-bf7717ac132030ea22b7bfd32898c639f1fcb665.tar.xz
git-serve.py: Adopt repositories on creation
Automatically assign ownership when creating a new (empty) repository. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git-integration/git-serve.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py
index 800eada4..a1c6e3a1 100755
--- a/scripts/git-integration/git-serve.py
+++ b/scripts/git-integration/git-serve.py
@@ -76,8 +76,8 @@ def setup_repo(repo, user):
die('%s: unknown user: %s' % (action, user))
cur.execute("INSERT INTO PackageBases (Name, SubmittedTS, ModifiedTS, " +
- "SubmitterUID) VALUES (%s, UNIX_TIMESTAMP(), " +
- "UNIX_TIMESTAMP(), %s)", [repo, userid])
+ "SubmitterUID, MaintainerUID) VALUES (%s, UNIX_TIMESTAMP(), " +
+ "UNIX_TIMESTAMP(), %s, %s)", [repo, userid, userid])
db.commit()
db.close()