~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/tests/test_uploadprocessor.py

Merged db-devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
 
491
491
        queue_item.setAccepted()
492
492
        pubrec = queue_item.sources[0].publish(self.log)
493
 
        pubrec.secure_record.status = PackagePublishingStatus.PUBLISHED
494
 
        pubrec.secure_record.datepublished = UTC_NOW
 
493
        pubrec.status = PackagePublishingStatus.PUBLISHED
 
494
        pubrec.datepublished = UTC_NOW
495
495
 
496
496
        # Make ubuntu/breezy a frozen distro, so a source upload for an
497
497
        # existing package will be allowed, but unapproved.
562
562
        # the copy archive ancestry override later.
563
563
        restricted = getUtility(IComponentSet)["restricted"]
564
564
        for pub in bar_bin_pubs:
565
 
            pub.secure_record.component = restricted
 
565
            pub.component = restricted
566
566
 
567
567
        # Create a COPY archive for building in non-virtual builds.
568
568
        uploader = getUtility(IPersonSet).getByName('name16')