Commit bf7717ac authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files Adopt repositories on creation

Automatically assign ownership when creating a new (empty) repository.

Signed-off-by: default avatarLukas Fleischer <>
parent 02dd9c51
......@@ -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])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment