#!/usr/bin/env python # See https://fedoraproject.org/wiki/Virtualization_bugs packages = [ "qemu", "kvm", "xen", "xenner", "libvirt", "bochs", "etherboot", "vgabios", "openbios", "virt-manager", "virt-viewer", "python-virtinst", "libguestfs", "gnome-applet-vm", "virt-mem", "virt-top", "virt-df", "collectd", "appliance-tools", "perl-Sys-Virt", "perl-Sys-Virt-TCK", "ruby-libvirt", "ocaml-libvirt", "libvirt-java" ] URL_TEMPLATE = "https://bugzilla.redhat.com/buglist.cgi?product=Fedora" OPEN_STATUS= "bug_status=NEW&bug_status=ASSIGNED&bug_status=MODIFIED&bug_status=ON_DEV&bug_status=ON_QA&bug_status=VERIFIED&bug_status=FAILS_QA&bug_status=RELEASE_PENDING&bug_status=POST" print "{|" print "|- style=\"color: white; background-color: #3074c2; font-weight: bold\"" print "|Package||Open Bugs||Rawhide Bugs||F11 Bugs||F10 Bugs||NEEDINFO Bugs||All Bugs" print "|-" print "| all || " + \ "[" + URL_TEMPLATE + "&" + "&".join(map(lambda x: "component=" + x, packages)) + "&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&" + "&".join(map(lambda x: "component=" + x, packages)) + "&version=rawhide&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&" + "&".join(map(lambda x: "component=" + x, packages)) + "&version=11&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&" + "&".join(map(lambda x: "component=" + x, packages)) + "&version=10&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&" + "&".join(map(lambda x: "component=" + x, packages)) + "&" + OPEN_STATUS + "&field0-0-0=flagtypes.name&type0-0-0=substring&value0-0-0=needinfo" + "]" + " || " + \ "[" + URL_TEMPLATE + "&" + "&".join(map(lambda x: "component=" + x, packages)) + "]" + " || " print "|-" for p in packages: print "| {{package|" + p + "}} || " + \ "[" + URL_TEMPLATE + "&component=" + p + "&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&component=" + p + "&version=rawhide&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&component=" + p + "&version=11&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&component=" + p + "&version=10&" + OPEN_STATUS + "]" + " || " + \ "[" + URL_TEMPLATE + "&component=" + p + "&" + OPEN_STATUS + "&field0-0-0=flagtypes.name&type0-0-0=substring&value0-0-0=needinfo" + "]" + "]" + " || " + \ "[" + URL_TEMPLATE + "&component=" + p + "]" + " || " print "|-" print "|}"