mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-serve.py: Adopt repositories on creation
Automatically assign ownership when creating a new (empty) repository. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
02dd9c518f
commit
bf7717ac13
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue