Merge lp:~cjwatson/launchpad/gina-deb-vendor-debian into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | William Grant on 2012-06-20 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15457 | ||||
| Proposed branch: | lp:~cjwatson/launchpad/gina-deb-vendor-debian | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
387 lines (+118/-33) 5 files modified
lib/lp/archiveuploader/utils.py (+7/-3) lib/lp/soyuz/scripts/gina/handlers.py (+4/-3) lib/lp/soyuz/scripts/gina/packages.py (+12/-11) lib/lp/soyuz/scripts/tests/test_gina.py (+72/-1) scripts/gina.py (+23/-15) |
||||
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/gina-deb-vendor-debian | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2012-06-19 | Approve on 2012-06-20 |
|
Review via email:
|
|||
Commit Message
Make gina extract Debian packages with DEB_VENDOR=debian.
Description of the Change
== Summary ==
Bug 901334 reports gina raising ExecutionErrors while attempting to extract a few source packages in Debian. The logs indicate that the affected packages are currently accountsservice, qjackctl, and xfce4-smartbook
== Proposed fix ==
The affected packages can all be fixed by extracting with DEB_VENDOR=debian set in the environment, which tells dpkg-source to use the Debian patch series rather than the (broken) Ubuntu one. This is correct anyway when extracting Debian source packages, as opposed to source packages that have been synced from Debian into Ubuntu.
Not many packages make use of the facility to have different Debian and Ubuntu patch series, never mind leaving one of them broken, which explains why this failure only occurs on three packages. We'll still have to fix this up to make them build on Ubuntu, but this should be handled in Ubuntu (or Debian) rather than having gina fail.
== Implementation details ==
The only annoyance is that we have to pass the distribution name down through quite a number of layers of code.
== LOC Rationale ==
+84. I have 2074 lines of credit and just submitted a branch which gains me another 816, so I'd like to use some of that credit for this critical bug fix.
== Tests ==
bin/test -vvct gina
== Demo and Q/A ==
This I'm unsure about. https:/
== Lint ==
The usual false positive for scripts:
./scripts/gina.py
22: '_pythonpath' imported but unused
| Colin Watson (cjwatson) wrote : | # |
Consensus on IRC regarding QA appeared to be that we'll comment out the transaction.

Looks good, thanks. Just one comment.
197 + # Some source packages unpack differently depending on dpkg's idea
198 + # of the "vendor", and in extreme cases may even fail with some
199 + # vendors. gina always sets the vendor to "debian" to ensure that
200 + # it unpacks packages as if unpacking on Debian.
It sets it to the target distro name, not always "debian".