Skip to content

Instantly share code, notes, and snippets.

View Yofel's full-sized avatar

Philip Muškovac Yofel

View GitHub Profile
#!/usr/bin/env python3
from launchpadlib.launchpad import Launchpad
lp = Launchpad.login_with("kubuntu-dev-tools", "production", version="devel")
packagers = lp.people['kubuntu-packagers']
packaging = lp.projects['kubuntu-packaging']
for repo in lp.git_repositories.getRepositories(target=packagers):
#!/usr/bin/env python
#
# File needs-packaging bugs with the given information
#
# Copyright (C) 2012 Philip Muskovac <yofel@kubuntu.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#!/usr/bin/env python
import sys, re, subprocess, argparse, urllib2, StringIO, gzip
from itertools import islice
from optparse import OptionParser
from launchpadlib.launchpad import Launchpad
def get_http_gzip(url):
f = urllib2.urlopen(url)
compresseddata = f.read()