Comment 2 for bug 680382

Revision history for this message
Steve Kowalik (stevenk) wrote :

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
from lp.registry.interfaces.distribution import IDistributionSet

packages = ('haskell-hxt-charproperties', 'initramfs-tools', 'jackd2', 'libtext-sass-perl', 'python-gnutls', 'system-config-lvm', 'unscd', 'xserver-xorg-video-intel')

sid = getUtility(IDistributionSet)['debian']['sid']

for pkg in packages:
 spr = sid.getSourcePackage(pkg).currentrelease
 print "%ch = spr.changelog
 if ch is None:
  print "No changelog"
 else:
  print ch.getURL()

Which produced the following output:
haskell-hxt-charproperties 9.0.0-1
https://librarian.dogfood.launchpad.net/57530744/changelog
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://librarian.dogfood.launchpad.net/57530830/changelog
system-config-lvm 1.1.15-1
https://librarian.dogfood.launchpad.net/57530846/changelog
unscd 0.47-1
https://librarian.dogfood.launchpad.net/57530858/changelog
xserver-xorg-video-intel 2:2.8.1-1
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.