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
=== modified file 'debian/changelog'
--- debian/changelog 2011-04-07 18:12:27 +0000
+++ debian/changelog 2011-04-11 22:32:20 +0000
@@ -3,6 +3,10 @@
3 * If a package is Multi-Arch: foreign, we don't need to build it unless we3 * If a package is Multi-Arch: foreign, we don't need to build it unless we
4 also want to install it in its own right.4 also want to install it in its own right.
5 * add tcl8.5 to the whitelist alongside tcl8.4.5 * add tcl8.5 to the whitelist alongside tcl8.4.
6 * When calling apt-cache show, qualify the package name with an
7 explicit architecture; this guards against attempts to import
8 not-for-us binaries that are in the apt cache in a multiarch
9 environment. LP: #752287.
610
7 [ Wookey ]11 [ Wookey ]
8 * Add some packages to black/whitelists 12 * Add some packages to black/whitelists
913
=== modified file 'debian/control'
--- debian/control 2011-04-07 18:12:27 +0000
+++ debian/control 2011-04-11 22:32:20 +0000
@@ -12,6 +12,7 @@
12Depends: ${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, sudo12Depends: ${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
13Recommends: gcc, fakeroot13Recommends: gcc, fakeroot
14XB-Python-Version: ${python:Versions}14XB-Python-Version: ${python:Versions}
15Breaks: apt (<< 0.7.26~exp6)
15Description: Cross-build tool for Debian packages16Description: Cross-build tool for Debian packages
16 xdeb allows building a set of packages, using either native or cross17 xdeb allows building a set of packages, using either native or cross
17 compilation. It is based on dpkg-cross and includes heuristics to map18 compilation. It is based on dpkg-cross and includes heuristics to map
1819
=== modified file 'xdeb.py'
--- xdeb.py 2011-04-07 11:58:36 +0000
+++ xdeb.py 2011-04-11 22:32:20 +0000
@@ -509,8 +509,9 @@
509 print "Considering binary %s" % binary509 print "Considering binary %s" % binary
510 try:510 try:
511 apt_opts = '-oAPT::Architecture=%s' % options.architecture511 apt_opts = '-oAPT::Architecture=%s' % options.architecture
512 pkg_spec = '%s:%s' % (binary, options.architecture)
512 bin_cache = get_output(['apt-cache', apt_opts,513 bin_cache = get_output(['apt-cache', apt_opts,
513 'show', binary]).splitlines()514 'show', pkg_spec]).splitlines()
514 except Exception:515 except Exception:
515 if options.debug:516 if options.debug:
516 print "skipping - %s" % binary517 print "skipping - %s" % binary

Subscribers

People subscribed via source and target branches