110
110
And two completely broken packages:
112
112
* util-linux, a source package that is missing from the pool. It
113
generates 4 binary packages, all missing. It's correctly listed in Sources
114
and Packages, though.
113
generates 4 binary packages, all missing. It's correctly listed in
114
Sources and Packages, though.
116
116
* clearlooks, a source package with no binaries listed, and which has
117
117
a DSC file that refers to an inexistant tar.gz.
292
294
were calculated directly on the files):
294
296
>>> from lp.soyuz.model.files import SourcePackageReleaseFile
295
>>> files = SourcePackageReleaseFile.selectBy(sourcepackagereleaseID=cap.id,
296
... orderBy="libraryfile")
297
>>> files = SourcePackageReleaseFile.selectBy(
298
... sourcepackagereleaseID=cap.id, orderBy="libraryfile")
297
299
>>> for f in files:
298
300
... print f.libraryfile.content.sha1
299
301
107d5478e72385f714523bad5359efedb5dcc8b2
321
323
>>> print db1.section.name
324
=== Testing Source Package Publishing ===
327
Testing Source Package Publishing
328
.................................
326
330
We check that the source package publishing override facility works:
337
341
successfully processed.
339
343
- We had 2 errors (out of 10 Sources stanzas) in hoary: mkvmlinuz and
342
- We had 2 errors (out of 10 Sources stanzas) in breezy: python-sqllite and
343
util-linux (again, poor thing)
346
- We had 2 errors (out of 10 Sources stanzas) in breezy: python-sqllite
347
and util-linux (again, poor thing).
345
349
>>> print SSPPH.select().count() - orig_sspph_count
348
>>> print SSPPH.selectBy(
352
>>> new_count = SSPPH.selectBy(
349
353
... componentID=1,
350
... pocket=PackagePublishingPocket.RELEASE).count() - \
351
... orig_sspph_main_count
354
... pocket=PackagePublishingPocket.RELEASE).count()
355
>>> print new_count - orig_sspph_main_count
354
=== Testing Binary Package Results ===
359
Testing Binary Package Results
360
..............................
356
362
We have 26 binary packages in hoary. The 4 packages for util-linux fail, and 1
357
363
package fails for each of python-sqlite and python-pam. We should publish one
358
364
entry for each package listed in Releases.
360
We have 23 binary packages in breezy. db1-compat, ed, the 3 libcap packages and
361
python-pam is unchanged. python-sqlite fails. The 5 ubuntu-meta packages work.
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
363
370
>>> BinaryPackageRelease.select().count() - orig_bpr_count
456
463
XXX: test package with invalid source version
457
464
XXX: test package with maintainer with non-ascii name
459
=== Testing People Created ===
461
Ensure only one Kamion was created (he's an uploader on multiple packages), and
462
that we imported exactly 9 people (13 packages with 3 being uploaded by Kamion,
463
2 being uploaded by mdz and 2 by doko).
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).
465
474
>>> from sqlobject import LIKE
466
475
>>> p = Person.selectOne(LIKE(Person.q.name, u"cjwatson%"))
560
570
>>> print SSPPH.select().count() - orig_sspph_count
563
Check that the overrides we did were correctly issued. We can't use selectOneBy
564
because, of course, there may be multiple rows published for that package --
565
that's what overrides actually do.
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.
567
577
>>> from canonical.database.sqlbase import sqlvalues
568
578
>>> x11_pub = SSPPH.select("""
746
=== Processing multiple suites in the same batch ===
758
Processing multiple suites in the same batch
759
............................................
748
761
Both, 'lenny' and 'hoary' (as partner) will be processed in the same