On 08/03/2012 02:48 AM, Thomas Guthmann wrote:
I would like to have confirmation that only admin can delete a NVR. I read http://fedoraproject.org/wiki/Koji/Policies and it's not clearly detailed except when you say "only admins may modify package lists".
Ideally I'd like my users to be able to untag and delete a faulty build from a tag so I don't have to do it :) But obviously I don't want them to be an admin.
Strictly speaking, an NVR cannot be deleted. You can delete a /build/, but this only marks the build as deleted and removes the files and some metadata. The NVR entry persists. Note, this means that NVRs cannot be reused.
Not every action in Koji is governed by policy. Deleting builds is hard coded to require the admin permission. I'm not in a hurry to change that. Even admins should not really be deleting builds manually except in special circumstances.
Normally, builds should only be deleted by koji-gc. If a user wants a build to be deleted, they should ensure it is untagged. The gc will eventually take care of the rest (as long as the build is really eligible for deletion).
Further reading: https://fedoraproject.org/wiki/Koji/GarbageCollection