hackage: track f14 for now and sort the output

epel9
Jens Petersen 14 years ago
parent da338d26fd
commit 1f45c24596

@ -13,12 +13,18 @@ packages = [pkg['name'] for pkg in p.pkgs if pkg['name'] not in ['cabal2spec','e
session = koji.ClientSession('http://koji.fedoraproject.org/kojihub') session = koji.ClientSession('http://koji.fedoraproject.org/kojihub')
outlist = []
for pkg in packages: for pkg in packages:
latest = session.getLatestBuilds('dist-rawhide', package=pkg) latest = session.getLatestBuilds('dist-f14-updates', package=pkg)
if latest: if latest:
ver = latest[0]['version'] ver = latest[0]['version']
name = pkg.replace('ghc-','',1) name = pkg.replace('ghc-','',1)
print "(\"%s\",\"%s\",Just \"https://admin.fedoraproject.org/pkgdb/acls/name/%s\")" % (name,ver,pkg) print "%s-%s" % (name,ver)
result = "(\"%s\",\"%s\",Just \"https://admin.fedoraproject.org/pkgdb/acls/name/%s\")" % (name,ver,pkg)
outlist.append(result)
f = open('Fedora', 'w')
# todo for l in sorted(outlist):
## sort output f.write(l+'\n')

Loading…
Cancel
Save