change: remove comaintainers when fulfilling orphan request

Closes FS#50079

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-08 20:02:14 -08:00
parent 4ae72af4b5
commit 2cb53411c0
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 13 additions and 0 deletions

View file

@ -71,6 +71,7 @@ def pkgbase_disown_instance(request: Request, pkgbase: PackageBase) -> None:
notifs += handle_request(request, ORPHAN_ID, pkgbase)
with db.begin():
pkgbase.Maintainer = None
db.delete_all(pkgbase.comaintainers)
util.apply_all(notifs, lambda n: n.send())