← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/always-copy-packages-asynchronously-2 into lp:launchpad

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/always-copy-packages-asynchronously-2 into lp:launchpad.

Commit message:
Stop using force_async=True parameter to do_copy, which is now unconditional.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/always-copy-packages-asynchronously-2/+merge/131928

== Summary ==

I am a bad person and broke buildbot.  Sorry.

== Tests ==

bin/test -vvct lp.registry.browser.tests.test_distroseries
-- 
https://code.launchpad.net/~cjwatson/launchpad/always-copy-packages-asynchronously-2/+merge/131928
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/always-copy-packages-asynchronously-2 into lp:launchpad.
=== modified file 'lib/lp/registry/browser/distroseries.py'
--- lib/lp/registry/browser/distroseries.py	2012-07-30 12:11:31 +0000
+++ lib/lp/registry/browser/distroseries.py	2012-10-29 15:15:26 +0000
@@ -960,15 +960,11 @@
 
         sponsored_person = data.get("sponsored_person")
 
-        # When syncing we *must* do it asynchronously so that a package
-        # copy job is created.  This gives the job a chance to inspect
-        # the copy and create a PackageUpload if required.
         if self.do_copy(
             'selected_differences', sources, self.context.main_archive,
             self.context, destination_pocket, include_binaries=False,
             dest_url=series_url, dest_display_name=series_title,
-            person=self.user, force_async=True,
-            sponsored_person=sponsored_person):
+            person=self.user, sponsored_person=sponsored_person):
             # The copy worked so we redirect back to show the results. Include
             # the query string so that the user ends up on the same batch page
             # with the same filtering parameters as before.


Follow ups