110
109
And two completely broken packages:
112
111
* util-linux, a source package that is missing from the pool. It
113
generates 4 binary packages, all missing. It's correctly listed in
114
Sources and Packages, though.
112
generates 4 binary packages, all missing. It's correctly listed in Sources
113
and Packages, though.
116
115
* clearlooks, a source package with no binaries listed, and which has
117
116
a DSC file that refers to an inexistant tar.gz.
341
336
successfully processed.
343
338
- We had 2 errors (out of 10 Sources stanzas) in hoary: mkvmlinuz and
346
- We had 2 errors (out of 10 Sources stanzas) in breezy: python-sqllite
347
and util-linux (again, poor thing).
341
- We had 2 errors (out of 10 Sources stanzas) in breezy: python-sqllite and
342
util-linux (again, poor thing)
349
344
>>> print SSPPH.select().count() - orig_sspph_count
352
>>> new_count = SSPPH.selectBy(
347
>>> print SSPPH.selectBy(
353
348
... componentID=1,
354
... pocket=PackagePublishingPocket.RELEASE).count()
355
>>> print new_count - orig_sspph_main_count
349
... pocket=PackagePublishingPocket.RELEASE).count() - \
350
... orig_sspph_main_count
359
Testing Binary Package Results
360
..............................
353
=== Testing Binary Package Results ===
362
355
We have 26 binary packages in hoary. The 4 packages for util-linux fail, and 1
363
356
package fails for each of python-sqlite and python-pam. We should publish one
364
357
entry for each package listed in Releases.
366
We have 23 binary packages in breezy. db1-compat, ed, the 3 libcap packages
367
and python-pam is unchanged. python-sqlite fails. The 5 ubuntu-meta packages
359
We have 23 binary packages in breezy. db1-compat, ed, the 3 libcap packages and
360
python-pam is unchanged. python-sqlite fails. The 5 ubuntu-meta packages work.
370
362
>>> BinaryPackageRelease.select().count() - orig_bpr_count
463
455
XXX: test package with invalid source version
464
456
XXX: test package with maintainer with non-ascii name
467
Testing People Created
468
......................
470
Ensure only one Kamion was created (he's an uploader on multiple packages),
471
and that we imported exactly 9 people (13 packages with 3 being uploaded by
472
Kamion, 2 being uploaded by mdz and 2 by doko).
458
=== Testing People Created ===
460
Ensure only one Kamion was created (he's an uploader on multiple packages), and
461
that we imported exactly 9 people (13 packages with 3 being uploaded by Kamion,
462
2 being uploaded by mdz and 2 by doko).
474
464
>>> from sqlobject import LIKE
475
465
>>> p = Person.selectOne(LIKE(Person.q.name, u"cjwatson%"))
570
559
>>> print SSPPH.select().count() - orig_sspph_count
573
Check that the overrides we did were correctly issued. We can't use
574
selectOneBy because, of course, there may be multiple rows published for that
575
package -- that's what overrides actually do.
562
Check that the overrides we did were correctly issued. We can't use selectOneBy
563
because, of course, there may be multiple rows published for that package --
564
that's what overrides actually do.
577
566
>>> from canonical.database.sqlbase import sqlvalues
578
>>> x11_pub = SSPPH.select("""
579
... sourcepackagerelease = %s AND
580
... distroseries = %s AND
583
... x11p, breezy, active_publishing_status),
584
... orderBy=["-datecreated"])[0]
567
>>> from lp.soyuz.enums import PackagePublishingStatus
568
>>> x11_pub = SSPPH.select("""sourcepackagerelease = %s
569
... AND distroseries = %s
570
... AND status in (%s, %s)""" %
571
... sqlvalues(x11p, breezy,
572
... PackagePublishingStatus.PUBLISHED,
573
... PackagePublishingStatus.PENDING),
574
... orderBy=["-datecreated"])[0]
585
575
>>> print x11_pub.section.name
587
>>> ed_pub = SBPPH.select("""
588
... binarypackagerelease = %s AND
589
... distroarchseries = %s AND
592
... ed, breezy_i386, active_publishing_status),
593
... orderBy=["-datecreated"])[0]
577
>>> ed_pub = SBPPH.select("""binarypackagerelease = %s
578
... AND distroarchseries = %s
579
... AND status in (%s, %s)""" %
580
... sqlvalues(ed, breezy_i386,
581
... PackagePublishingStatus.PUBLISHED,
582
... PackagePublishingStatus.PENDING),
583
... orderBy=["-datecreated"])[0]
594
584
>>> print ed_pub.priority
596
586
>>> n = SourcePackageName.selectOneBy(name="archive-copier")
597
587
>>> ac = SourcePackageRelease.selectOneBy(sourcepackagenameID=n.id,
598
588
... version="0.3.6")
599
>>> ac_pub = SSPPH.select("""
600
... sourcepackagerelease = %s AND
601
... distroseries = %s AND
604
... ac, breezy, active_publishing_status),
605
... orderBy=["-datecreated"])[0]
589
>>> ac_pub = SSPPH.select("""sourcepackagerelease = %s
590
... AND distroseries = %s
591
... AND status in (%s, %s)""" %
592
... sqlvalues(ac, breezy,
593
... PackagePublishingStatus.PUBLISHED,
594
... PackagePublishingStatus.PENDING),
595
... orderBy=["-datecreated"])[0]
606
596
>>> print ac_pub.component.name
610
Partner archive import
611
......................
600
=== Partner archive import ===
613
602
Importing the partner archive requires overriding the component to
614
603
"partner", which also makes the archive on any publishing records the