Merge lp:~wgrant/launchpad/really-publish-ppa-ddebs into lp:launchpad

Proposed by William Grant
Status: Merged
Approved by: Robert Collins
Approved revision: no longer in the source branch.
Merged at revision: 11169
Proposed branch: lp:~wgrant/launchpad/really-publish-ppa-ddebs
Merge into: lp:launchpad
Diff against target: 44 lines (+0/-24)
2 files modified
lib/lp/soyuz/model/publishing.py (+0/-6)
lib/lp/soyuz/tests/test_publishing.py (+0/-18)
To merge this branch: bzr merge lp:~wgrant/launchpad/really-publish-ppa-ddebs
Reviewer Review Type Date Requested Status
Robert Collins (community) Approve
Review via email: mp+29670@code.launchpad.net

Commit message

Don't skip DDEB publication for PPAs.

Description of the change

PPA ddeb (debug symbol package) publication is currently disabled. The record is marked as published, but the file is never written to disk.

This is the case because publication of DDEBs was going to be restricted on a per-PPA basis. But we're now going to restrict building instead, so publication should be turned back on unconditionally. This branch deletes the code and test for skipping DDEB publication.

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/soyuz/model/publishing.py'
2--- lib/lp/soyuz/model/publishing.py 2010-06-22 16:08:05 +0000
3+++ lib/lp/soyuz/model/publishing.py 2010-07-12 06:44:37 +0000
4@@ -83,12 +83,6 @@
5
6 def publish(self, diskpool, log):
7 """See IFilePublishing."""
8- # DDEB publication for PPAs is temporarily disabled, see bug #399444.
9- if (self.archive.is_ppa and
10- self.libraryfilealiasfilename.endswith('.ddeb')):
11- log.debug('Skipping DDEB disk publication.')
12- return
13-
14 # XXX cprov 2006-06-12 bug=49510: The encode should not be needed
15 # when retrieving data from DB.
16 source = self.sourcepackagename.encode('utf-8')
17
18=== modified file 'lib/lp/soyuz/tests/test_publishing.py'
19--- lib/lp/soyuz/tests/test_publishing.py 2010-05-05 14:50:42 +0000
20+++ lib/lp/soyuz/tests/test_publishing.py 2010-07-12 06:44:37 +0000
21@@ -578,24 +578,6 @@
22 pool_path = "%s/main/f/foo/foo-bin_666_all.deb" % self.pool_dir
23 self.assertEqual(open(pool_path).read().strip(), 'Hello world')
24
25- def test_publish_ddeb_for_ppas(self):
26- # DDEB publications in PPAs result in a PUBLISHED publishing record
27- # but the corresponding files are *not* dumped in the disk pool/.
28- cprov = getUtility(IPersonSet).getByName('cprov')
29- pub_binary = self.getPubBinaries(
30- filecontent='Hello world', format=BinaryPackageFormat.DDEB,
31- archive=cprov.archive)[0]
32-
33- # Publication happens in the database domain.
34- pub_binary.publish(self.disk_pool, self.logger)
35- self.assertEqual(
36- PackagePublishingStatus.PUBLISHED,
37- pub_binary.status)
38-
39- # But the DDEB isn't dumped to the repository pool/.
40- pool_path = "%s/main/f/foo/foo-bin_666_all.ddeb" % self.pool_dir
41- self.assertFalse(os.path.exists(pool_path))
42-
43 def testPublishingOverwriteFileInPool(self):
44 """Test if publishOne refuses to overwrite a file in pool.
45