[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741251: marked as done (python-apt 0.9.3 regression: Setting APT::Architecture now downloads wrong indexes from the host arch)



Your message dated Mon, 10 Mar 2014 15:40:22 +0000
with message-id <E1WN2JS-0001zv-6T@franck.debian.org>
and subject line Bug#741251: fixed in python-apt 0.9.3.2
has caused the Debian Bug report #741251,
regarding python-apt 0.9.3 regression: Setting APT::Architecture now downloads wrong indexes from the host arch
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
741251: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741251
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python3-apt
Version: 0.9.3

Hello,

Since the upgrade from 0.9.1 to 0.9.3, which regresses the support for
using "sandboxes" with a different architecture, with e. g.

  apt.apt_pkg.config.set('APT::Architecture', 'armhf')

This can be seen in attached minimal reproducer. It works with
python-apt 0.9.1, but with 0.9.3 it tries to download the amd64
indexes:

   Err http://ports.ubuntu.com trusty/main amd64 Packages
   [...]
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 441, in update
    pulse_interval)
  SystemError: W:Failed to fetch http://ports.ubuntu.com/dists/trusty/main/binary-amd64/Packages  404  Not Found
  , E:Some index files failed to download. They have been ignored, or old ones used instead.

I'm using http://ports.ubuntu.com/ here as this more clearly
demonstrates the problem (x86 are on archive.u.c., armhf, powerpc etc.
on ports.u.c.)

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
import apt
import os
import shutil

# prepare sandbox dirs
apt_root = '/tmp/sandbox'
os.makedirs(os.path.join(apt_root, 'etc', 'apt'))

# switch to armhf; set up apt sources
apt.apt_pkg.config.set('APT::Architecture', 'armhf')
with open(os.path.join(apt_root, 'etc', 'apt', 'sources.list'), 'w') as f:
    f.write('deb http://ports.ubuntu.com/ trusty main\n')

# set up apt cache
c = apt.Cache(rootdir=apt_root)
# update indexes
c.update(apt.progress.text.AcquireProgress())

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 0.9.3.2

We believe that the bug you reported is fixed in the latest version of
python-apt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 741251@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Andres Klode <jak@debian.org> (supplier of updated python-apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 10 Mar 2014 14:32:53 +0100
Source: python-apt
Binary: python-apt python-apt-doc python-apt-dbg python-apt-dev python-apt-common python3-apt python3-apt-dbg
Architecture: source amd64 all
Version: 0.9.3.2
Distribution: unstable
Urgency: high
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Julian Andres Klode <jak@debian.org>
Description: 
 python-apt - Python interface to libapt-pkg
 python-apt-common - Python interface to libapt-pkg (locales)
 python-apt-dbg - Python interface to libapt-pkg (debug extension)
 python-apt-dev - Python interface to libapt-pkg (development files)
 python-apt-doc - Python interface to libapt-pkg (API documentation)
 python3-apt - Python 3 interface to libapt-pkg
 python3-apt-dbg - Python 3 interface to libapt-pkg (debug extension)
Closes: 741251
Changes: 
 python-apt (0.9.3.2) unstable; urgency=high
 .
   * Revert "* apt/cache.py:" (rootdir change) (Closes: #741251) (LP: #1288171)
 .
     We cannot reset the configuration when rootdir is specified in
     apt.Cache(). This reopens: #728274.
Checksums-Sha1: 
 11f9a39ea1529dc0856227b75161142f7582a6e0 1554 python-apt_0.9.3.2.dsc
 e72f4b60d6407fb75eb52e33cc4d10c8984b5204 305048 python-apt_0.9.3.2.tar.xz
 cc4c477f5af31f2645dcb2099349e2699556423c 162926 python-apt_0.9.3.2_amd64.deb
 1f307359b0a7cac7cb16e905477afc79ebfb50d9 152256 python-apt-doc_0.9.3.2_all.deb
 4d77751054a92549b411fc82dd23f9bfacb0dcff 2307646 python-apt-dbg_0.9.3.2_amd64.deb
 c7640991e9f3b5e11db527d4ea1cca993be46716 7458 python-apt-dev_0.9.3.2_all.deb
 e0c127d59fa5bbf2ec746ed8db80d70bd90efca0 87490 python-apt-common_0.9.3.2_all.deb
 29af340430b7d6dba45c8162cbfe6112c72cb1eb 169648 python3-apt_0.9.3.2_amd64.deb
 998f5da9355d8f5711bb6d4ac8d0ad82f4e10a35 4242510 python3-apt-dbg_0.9.3.2_amd64.deb
Checksums-Sha256: 
 5533c28e341838c9039116af2f996313ff80b5af11fbcc4652d34ab1bd7d18e5 1554 python-apt_0.9.3.2.dsc
 dd807c14a3013e34f121bc28e776de59aff6cd3d8fba7b6f3d020a6ca9afb4cb 305048 python-apt_0.9.3.2.tar.xz
 c0756a23d2a6e63603a85bfbc2d8c1a2af8a530e2f83561f2296265edfed6355 162926 python-apt_0.9.3.2_amd64.deb
 8585fb5193d77a0bad9bcc83e2207c0eb5ee2e01c3a7f206526f5611f9dba699 152256 python-apt-doc_0.9.3.2_all.deb
 8694dd439551789b75f7a49e100da1b53022f76f31ef5efc8029b4706f74cb71 2307646 python-apt-dbg_0.9.3.2_amd64.deb
 cb1b3a1ea469cdd311b908d4c5c78c9ebb301c3bab3cd1ee8975dfe2e9508a0f 7458 python-apt-dev_0.9.3.2_all.deb
 1ae2eb7f141c9417c216d4599239e6d0066e19450405ed5f3e0a237c42f6381c 87490 python-apt-common_0.9.3.2_all.deb
 539e5a9a6fbbf29afbff3bb4055ec92cbfa06dbb15f7425c06a5a99b2d8d4b5e 169648 python3-apt_0.9.3.2_amd64.deb
 ffaa72191dd6a332f1c7fd544bd8748351fb759062a58c3a03ba6ea324e69fea 4242510 python3-apt-dbg_0.9.3.2_amd64.deb
Files: 
 97654d43a52caa818f897e14329abf9c 1554 python standard python-apt_0.9.3.2.dsc
 87098cb68d9b14991be3000e46bcd42e 305048 python standard python-apt_0.9.3.2.tar.xz
 a8819bf0dc63a6ce5f72299fada041b1 162926 python standard python-apt_0.9.3.2_amd64.deb
 e1b06b4f01ddbd7cd4a77509248457cc 152256 doc optional python-apt-doc_0.9.3.2_all.deb
 5dc50edb98a5e0fea7aefb7615549694 2307646 debug extra python-apt-dbg_0.9.3.2_amd64.deb
 0dab2c442dcb695bfc220b4da0a77d30 7458 python optional python-apt-dev_0.9.3.2_all.deb
 88d71440f0700a9672858ce8c000ae38 87490 python optional python-apt-common_0.9.3.2_all.deb
 f66349027ba46c060c0069164886a5fe 169648 python optional python3-apt_0.9.3.2_amd64.deb
 f7258ad3dfd4d793802b76a351b31f30 4242510 debug extra python3-apt-dbg_0.9.3.2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlMdwaQACgkQrCpf/gCCPsK4JACff3wmUWnNYa90dyaw48mMRrUc
G9QAn19NvoktIZiVHjCgMK5jbOTazFzp
=ZUZM
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: