Merge lp:~vorlon/xdeb/lp.752287 into lp:xdeb

Proposed by Steve Langasek
Status: Merged
Merged at revision: 253
Proposed branch: lp:~vorlon/xdeb/lp.752287
Merge into: lp:xdeb
Diff against target: 41 lines (+7/-1)
3 files modified
debian/changelog (+4/-0)
debian/control (+1/-0)
xdeb.py (+2/-1)
To merge this branch: bzr merge lp:~vorlon/xdeb/lp.752287
Reviewer Review Type Date Requested Status
Loïc Minier Approve
Review via email: mp+56894@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Loïc Minier (lool) wrote :

 review approve

On Fri, Apr 08, 2011, Steve Langasek wrote:
> bin_cache = get_output(['apt-cache', apt_opts,
> - 'show', binary]).splitlines()
> + 'show',
> + '%s:%s' % (binary, options.architecture)]).splitlines()

 Looks like last line is a bit too long; please fix before merging

 Out of curiosity, does this work with pre-multiarch APTs like lucid's?

--
Loïc Minier

review: Approve
lp:~vorlon/xdeb/lp.752287 updated
254. By Steve Langasek

break up the line to fit us in 80 columns

Revision history for this message
Steve Langasek (vorlon) wrote :

On Fri, Apr 08, 2011 at 10:28:30AM -0000, Loïc Minier wrote:
> Review: Approve
> review approve

> On Fri, Apr 08, 2011, Steve Langasek wrote:
> > bin_cache = get_output(['apt-cache', apt_opts,
> > - 'show', binary]).splitlines()
> > + 'show',
> > + '%s:%s' % (binary, options.architecture)]).splitlines()

> Looks like last line is a bit too long; please fix before merging

Fixed and pushing, thanks.

> Out of curiosity, does this work with pre-multiarch APTs like lucid's?

Nope, it doesn't. Thanks, added a breaks on old apt for this.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world

lp:~vorlon/xdeb/lp.752287 updated
255. By Steve Langasek

add a Breaks: on pre-multiarch versions of apt, since apt-cache will fail for
us otherwise

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-04-07 18:12:27 +0000
3+++ debian/changelog 2011-04-11 22:32:20 +0000
4@@ -3,6 +3,10 @@
5 * If a package is Multi-Arch: foreign, we don't need to build it unless we
6 also want to install it in its own right.
7 * add tcl8.5 to the whitelist alongside tcl8.4.
8+ * When calling apt-cache show, qualify the package name with an
9+ explicit architecture; this guards against attempts to import
10+ not-for-us binaries that are in the apt cache in a multiarch
11+ environment. LP: #752287.
12
13 [ Wookey ]
14 * Add some packages to black/whitelists
15
16=== modified file 'debian/control'
17--- debian/control 2011-04-07 18:12:27 +0000
18+++ debian/control 2011-04-11 22:32:20 +0000
19@@ -12,6 +12,7 @@
20 Depends: ${misc:Depends}, ${python:Depends}, python-debian (>= 0.1.11), dpkg-dev (>= 1.15), lintian (>= 2.3.0), devscripts (>= 2.10.41), dpkg-cross (>= 2.6.3), apt-utils, python-apt (>= 0.7.91), wget, build-essential, sudo
21 Recommends: gcc, fakeroot
22 XB-Python-Version: ${python:Versions}
23+Breaks: apt (<< 0.7.26~exp6)
24 Description: Cross-build tool for Debian packages
25 xdeb allows building a set of packages, using either native or cross
26 compilation. It is based on dpkg-cross and includes heuristics to map
27
28=== modified file 'xdeb.py'
29--- xdeb.py 2011-04-07 11:58:36 +0000
30+++ xdeb.py 2011-04-11 22:32:20 +0000
31@@ -509,8 +509,9 @@
32 print "Considering binary %s" % binary
33 try:
34 apt_opts = '-oAPT::Architecture=%s' % options.architecture
35+ pkg_spec = '%s:%s' % (binary, options.architecture)
36 bin_cache = get_output(['apt-cache', apt_opts,
37- 'show', binary]).splitlines()
38+ 'show', pkg_spec]).splitlines()
39 except Exception:
40 if options.debug:
41 print "skipping - %s" % binary

Subscribers

People subscribed via source and target branches