#1029 Mass removal from packages
Closed Opened by davidz.

Hey,

I left Red Hat a couple of weeks ago and would like to remove myself from the 323 (!) packages I was associated. I would like to still comaintain (not own) the following packages: udisks, gnome-disk-utility, polkit

Since it is not practical for me to do this form the web interface I ask that someone with shell access do this for me. My username in the Fedora system is 'davidz'.

I've added my old manager to the Cc as he can help you with reassign the packages I used to own.

Thanks in advance,
David

p.s. : If I'm asking in the wrong place, please tell me where to ask instead as there doesn't seem to be any good information on how to do this nor how to actually delete your Fedora account. Thanks!


Actually I meant udisks2, not udisks. E.g. the only packages I'd like to be associated with (e.g. be able to commit to) are

polkit
udisks2
gnome-disk-utility

Thanks again and sorry for the mistake!

I tried writing a small python program to do this, it's

{{{

!/usr/bin/python

import fedora.client

db = fedora.client.PackageDB(username='davidz', password='REDACTED')
pkgs = db.user_packages(username='davidz', acls=['owner', 'watchcommits'], eol=False)
print '%d packages'%pkgs.pkgCount
for p in pkgs.pkgs:
if p.name in ['udisks2', 'polkit', 'gnome-disk-utility']:
print 'skipping %s'%p.name
else:
print 'removing davidz from %s'%p.name
db.remove_user('davidz', p.name)
}}}

but of course that failed because my user do not have the required permissions

{{{
fedora.client.AppError: AppError(NoAllowError, davidz is not in admin_grp, extras={})
}}}

I would appreciate if someone with admin privileges could run this for me soon. Thanks.

Well, if you want to do it yourself, we do have a command line tool: pkgdb-cli

Confusingly it's in the packagedb-cli package. :)

If you prefer we do it, I can look at getting it done later today hopefully...

I started running the script, and then realized partway through (after getting poked on IRC) that it was sending mail for each package to all the owners. I can continue it, but I'm curious if there's a way to do this without mass-spamming. Toshio?

Hey Bill. Thanks for running the script! I'm fine with the emails - I just filter it to my fedora mail folder. I guess most people do the same but ICBW. Thanks again!

Yeah, after talking with affected people, just finished off the script. Should be done now (and apologies to those who got spammed.)

Yeah, I can do things like that in the database without spamming people. Several years ago (perl comaintainer debacle if anyone remembers) FESCo asked that if I do mass changes I do spam people about the changes. In the database, this is harder than simply making the acl changes which has made it much harder to make these sorts of changes.

If notifications are undesirable for mass changes it would be a pleasure to know as it would make it easier for me to get enough time to move forward on some of the mass change requests that have been pending.

Replying to [ticket:1029 davidz]:

I would like to still comaintain (not own) the following packages: udisks, gnome-disk-utility, polkit

Hi David,

I've just took ownership of udisks2 and g-d-u, the only other user allowed to commit is the usual provenpackager group. Feel free to add yourself and I'll approve your requests right away. I can't seem to be able to add specific users from pkgdb UI. Or maybe admins could do that manually.

Metadata