Univention Bugzilla – Attachment 10243 Details for
Bug 49900
Import Debian Buster 10 for UCS-<next>
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
qa.py
qa.py (text/x-python), 841 bytes, created by
Florian Best
on 2019-12-02 12:21 CET
(
hide
)
Description:
qa.py
Filename:
MIME Type:
Creator:
Florian Best
Created:
2019-12-02 12:21 CET
Size:
841 bytes
patch
obsolete
>#!/usr/bin/python2.7 >from __future__ import print_function >import gzip >import glob >import pgdb > >from debian.deb822 import Deb822 > >from univention.repong.repo_lib_cfg import repocfg > >cfg = repocfg() >dbhdl = pgdb.connect(host=cfg.pgdbhost, database=cfg.pgdbname, user=cfg.pgdbuser, password=cfg.pgdbpw) >dbcur = dbhdl.cursor() > > >for filename in glob.glob('/mnt/build-storage/upstream/debian/dists/buster/*/*/Packages*.gz'): > with gzip.open('/mnt/build-storage/upstream/debian/dists/buster/contrib/binary-all/Packages.gz') as fd: > for pkg in Deb822.iter_paragraphs(fd): > if 'Source' not in pkg and 'Debian Games Team' not in pkg['Maintainer']: > dbcur.execute("SELECT 1 FROM src_rev WHERE sourcepackagename=%s AND version=%s LIMIT 1", (pkg['Package'], pkg['Version'])) > if dbcur.rowcount != 1: > print(pkg['Package'], pkg['Version'])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 49900
:
10243
|
10268
|
10271
|
10275