for pkg in packages:
spr = sid.getSourcePackage(pkg).currentrelease
print "%ch = spr.changelog
if ch is None:
print "No changelog"
else:
print ch.getURL()
It seems my script is naive, and doesn't get the latest version, so not all of them have a changelog set. However, I checked all of them that did have one set, and it has hit the librarian correctly.
I have sucessfully QA'd this on dogfood, by creating a small Debian mirror of sid and running gina over it.
Picking out some of the new sources imported during the run, I wrote the following script:
from zope.component import getUtility interfaces. distribution import IDistributionSet
from lp.registry.
packages = ('haskell- hxt-charpropert ies', 'initramfs-tools', 'jackd2', 'libtext- sass-perl' , 'python-gnutls', 'system- config- lvm', 'unscd', 'xserver- xorg-video- intel')
sid = getUtility( IDistributionSe t)['debian' ]['sid' ]
for pkg in packages: ckage(pkg) .currentrelease
spr = sid.getSourcePa
print "%ch = spr.changelog
if ch is None:
print "No changelog"
else:
print ch.getURL()
Which produced the following output: hxt-charpropert ies 9.0.0-1 /librarian. dogfood. launchpad. net/57530744/ changelog /librarian. dogfood. launchpad. net/57530830/ changelog /librarian. dogfood. launchpad. net/57530846/ changelog /librarian. dogfood. launchpad. net/57530858/ changelog xorg-video- intel 2:2.8.1-1
haskell-
https:/
initramfs-tools 0.97
No changelog
jackd2 1.9.5~dfsg-17
No changelog
libtext-sass-perl 0.5-1
No changelog
python-gnutls 1.2.0-2
https:/
system-config-lvm 1.1.15-1
https:/
unscd 0.47-1
https:/
xserver-
No changelog
It seems my script is naive, and doesn't get the latest version, so not all of them have a changelog set. However, I checked all of them that did have one set, and it has hit the librarian correctly.