#6376: Missing administrators of several KDE packages
------------------------------+-----------------------
Reporter: dvratil | Owner: rel-eng@…
Type: task | Status: closed
Milestone: Fedora 24 Alpha | Component: other
Resolution: fixed | Keywords:
Blocked By: | Blocking:
------------------------------+-----------------------
Changes (by pingou):
* status: new => closed
* resolution: => fixed
Comment:
Done,
Pasting here the script I used for future reference if needed/desired:
{{{
#!/usr/bin/python2
""" This script grant the specified ACL to the specified user on a bunch
of
packages (specified as well).
"""
import sys
import requests
import pkgdb2client
import pkgdb2client.cli
pkgdb = pkgdb2client.PkgDB(
'https://admin.fedoraproject.org/pkgdb',
login_callback=pkgdb2client.ask_password)
ACLs = ['approveacls']
USER = 'rdieter'
PKGS = [
'rpms/kaccounts-integration',
'rpms/kaccounts-providers',
'rpms/kde-cli-tools',
'rpms/kdecoration',
'rpms/kdeedu-data',
'rpms/kf5-kfilemetadata',
'rpms/kf5-kpackage',
'rpms/kf5-kpeople',
'rpms/kf5-kwayland',
'rpms/kf5-kxmlrpcclient',
'rpms/kf5-modemmanager-qt',
'rpms/kf5-networkmanager-qt',
'rpms/khelpcenter',
'rpms/khotkeys',
'rpms/kinfocenter',
'rpms/kmenuedit',
'rpms/kio-extras',
'rpms/ksysguard',
'rpms/kwrited',
'rpms/libkeduvocdocument',
'rpms/libkface',
'rpms/libkgeomap',
'rpms/libkscreen-qt5',
'rpms/libksysguard',
'rpms/plasma-nm',
'rpms/plasma-pk-updates',
'rpms/plasma-workspace-wallpapers',
'rpms/signon',
'rpms/signon-kwallet-extension',
'rpms/signon-plugin-oauth2',
'rpms/signon-ui',
]
def main():
""" Grant ACLs to USER no the list of packages PKGS
"""
for package in PKGS:
print package
ns, pkgname = package.split('/')
branches = pkgdb2client.cli._get_active_branch(pkgname)
pkgdb.update_acl(
pkgname, branches, ACLs, 'Approved', USER)
#break
return 0
if __name__ == '__main__':
try:
sys.exit(main())
except KeyboardInterrupt:
sys.exit(1)
}}}
It's a little slow as I made it ask for the branch of each package while I
could just have asked for all the branches active which would have speed
things up, but I wasn't in a hurry :)
--
Ticket URL: <
https://fedorahosted.org/rel-eng/ticket/6376#comment:2>
Fedora Release Engineering <
http://fedorahosted.org/rel-eng>
Release Engineering for the Fedora Project