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

Bug#680997: marked as done (python-apt: Acquire.run returns 0 even in case of download error)



Your message dated Thu, 11 Jun 2015 22:32:36 +0000
with message-id <E1Z3B1Y-00074R-HH@franck.debian.org>
and subject line Bug#680997: fixed in python-apt 1.0.0~beta1
has caused the Debian Bug report #680997,
regarding python-apt: Acquire.run returns 0 even in case of download error
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.)


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

apt_pkg.Acquire.run returns 0 (== RESULT_CONTINUE), even when some items failed to be downloaded. This is contrary to the documentation, which reads "RESULT_CONTINUE means that all items which where queued prior to calling
run() have been fetched successfully."

$ python test.py
Err non-existent
  404  Not Found [IP: 82.195.75.97 80]
Fetched 0 B in 0s (0 B/s)
.run() returned 0


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.4-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  libapt-inst1.5     0.9.7.1
ii  libapt-pkg4.12     0.9.7.1
ii  libc6              2.13-34
ii  libgcc1            1:4.7.1-3
ii  libstdc++6         4.7.1-3
ii  python             2.7.3-1
ii  python-apt-common  0.8.6
ii  python2.6          2.6.8-0.2
ii  python2.7          2.7.3-1

--
Jakub Wilk
import apt.progress
import apt_pkg

progress = apt.progress.text.AcquireProgress()
fetcher = apt_pkg.Acquire(progress)
file = apt_pkg.AcquireFile(fetcher,
    uri='http://debian.org/non-existent',
    descr='non-existent',
    destfile='/dev/null'
)
rc = fetcher.run()
print '.run() returned %d' % rc

--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 1.0.0~beta1

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 680997@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: SHA512

Format: 1.8
Date: Thu, 11 Jun 2015 22:38:31 +0200
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 all amd64
Version: 1.0.0~beta1
Distribution: unstable
Urgency: low
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: 565364 613974 680997 736119 742885 745487 748922 750189 751770 781270 784910 785261 785337 785431
Changes:
 python-apt (1.0.0~beta1) unstable; urgency=low
 .
   [ Julian Andres Klode ]
   * tests/test_tagfile.py: Close files we opened to prevent leakage
     (Closes: #785337)
   * doc/source/c++/api.rst: Upgrade syntax to use the new domain stuff
   * doc/source/library/apt_pkg.rst: Fix indentation (Closes: #736119)
   * sphinx docs: Fix remaining instances of old C syntax to use domains
   * python/cache.cc: Handle deprecation of pkgCache::PkgIterator::Section()
   * doc: Prepare for 1.0 release
   * TagFile: Provide close() and context manager (Closes: #748922)
   * doc: Document apt_pkg.TagFile additions
   * doc: templates: layout: Remove invalid icon links
   * debian/control: Build-Depend on dh-python
   * Do not link documentation from Architecture: all to Architecture: any
   * Use ${python:Depends} and friends for the debug packages
   * apt.debfile: Fix splitting of multi-lines Binary fields in dsc files
     (Closes: #751770)
   * Remove apt.progress.gtk2
   * apt_pkg.Package: Drop the unset 'auto' attribute (Closes: #565364)
   * Update POTFILES.in and the pot
   * apt/cache.py: Work around a cyclic reference from Cache to its methods
     (Closes: #745487)
   * apt/debfile.py: Arch-qualify in compare_to_version_in_cache()
     (Closes: #750189)
   * apt.package: Only reference Launchpad for missing changelogs on Ubuntu
     (Closes: #781270)
   * apt/cache.py: Support :all and other special architecture specifies
   * apt/debfile: Stop special-casing all when looking for a package in the cache
   * apt/debfile.py: Allow downgrading packages in check() with a parameter
     (Closes: #613974)
   * Acquire: Document that items may have transient errors on run() success
     (Closes: #680997)
   * Large file support (Closes: #742885)
     - python/arfile.cc: Do not allow files larger than SIZE_MAX to be mapped
     - python/arfile.cc: LFS: Use long long instead of long for file sizes
     - python/tarfile.cc: LFS: Handle too large file
   * setup.py: Translate version number from Debian to PEP0440 (LP: #1445949)
 .
   [ Michael Vogt ]
   * apt_pkg.rst: improve documentation for AcquireFile() hash and add
     sha512 to the documentation
   * rename "md5" keyword argument in AcquireFile() to "hash" and add
     backward compatiblity
   * Fix apt.Package.installed_files for multi-arch packages (LP: #1313699)
 .
   [ von ]
   * Remove the "-Wstrict-prototypes" compiler option (Closes: #785261)
   * Set Standards-Version to 3.9.6 (Closes: #785431)
   * Fix indentation and docstring problems (Closes: #784910)
 .
   [ Michael Schaller ]
   * Fixed docstring of BaseDependency.version property.
   * Improved docstring of the Version.get_dependencies method.
Checksums-Sha1:
 39c0b061f4165e5c7b3368f84d0b6548173c6779 2257 python-apt_1.0.0~beta1.dsc
 038719d93eb82c0bc27a01e3f69f59a4f714a1cb 310196 python-apt_1.0.0~beta1.tar.xz
 140144ec7e417c5fae9dbee89c784b731258a48e 90856 python-apt-common_1.0.0~beta1_all.deb
 996e03d11b01091a4e5325cd99bc33cc4c4b0b9c 1581050 python-apt-dbg_1.0.0~beta1_amd64.deb
 87900e1eda3ef06b773f9e7723f1f2ef3465b3a1 36682 python-apt-dev_1.0.0~beta1_all.deb
 bd5697f24fc942c88f9ef8f9913d72e9ef283bd5 181038 python-apt-doc_1.0.0~beta1_all.deb
 34053f312f040a2db9c767b68dc6eec88a003029 170688 python-apt_1.0.0~beta1_amd64.deb
 2cb1819621d74f16dbce4525a22d912868b12da1 1593786 python3-apt-dbg_1.0.0~beta1_amd64.deb
 c7434877b80b6806ccb87410ef2a45f3c0bbea9d 168676 python3-apt_1.0.0~beta1_amd64.deb
Checksums-Sha256:
 ec21b899f0eb26fb6e351713ea06035ab111f0ef78d98029bb444785e5e6c9a4 2257 python-apt_1.0.0~beta1.dsc
 a58545c64d74447250ab9cc963999652c66a3c37e345132435d574c626672968 310196 python-apt_1.0.0~beta1.tar.xz
 e0d4d64dbafad1f7c10084808e7729bf384d784993d9b026b3564e6f7fd33fb0 90856 python-apt-common_1.0.0~beta1_all.deb
 ca52035cce3d9a0128f2feaf44ed0daeee8cb2fc72dcecb3ef141db4b2dbe517 1581050 python-apt-dbg_1.0.0~beta1_amd64.deb
 fab00f165863ab707958977ff798d5a7eb4f946439f785fc353dfb03d9b25ff8 36682 python-apt-dev_1.0.0~beta1_all.deb
 be1e1c8995c2fd279b8ed85cbc7a34f60b34c4028de57ff935d2157c9e297ec5 181038 python-apt-doc_1.0.0~beta1_all.deb
 ede44d8adf9273fb7368a9a79650e976b2c8a77e5c8db6e03234e9cb7f792581 170688 python-apt_1.0.0~beta1_amd64.deb
 d5d37106c26290901a24bf0517ff48d2aa5b4ad2a41fd14385ea2c033524b372 1593786 python3-apt-dbg_1.0.0~beta1_amd64.deb
 e0b51f6a42592150eb34b7589db477c76dbce232f4dd4cc431df2ad87f729178 168676 python3-apt_1.0.0~beta1_amd64.deb
Files:
 62c3b093c2609719a02630e7a7bef962 2257 python standard python-apt_1.0.0~beta1.dsc
 d11c895121fd8c6c7373078579406ea0 310196 python standard python-apt_1.0.0~beta1.tar.xz
 50a4d29f54a87a0aaf408bbe3313484a 90856 python optional python-apt-common_1.0.0~beta1_all.deb
 1842e653c3fe3ade90b7bac01a0664db 1581050 debug extra python-apt-dbg_1.0.0~beta1_amd64.deb
 aa199f5dc05bbff54bb0e63cd427e38f 36682 python optional python-apt-dev_1.0.0~beta1_all.deb
 45687b6645df62117199ab3640d0ff71 181038 doc optional python-apt-doc_1.0.0~beta1_all.deb
 9e5e8a0f0ea904bf0245c81d8950b966 170688 python standard python-apt_1.0.0~beta1_amd64.deb
 98c74f48861fb3c93c13b9d491c31770 1593786 debug extra python3-apt-dbg_1.0.0~beta1_amd64.deb
 76068ad4cdc30826cf6fe2015c8a9cc8 168676 python optional python3-apt_1.0.0~beta1_amd64.deb

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

iQIcBAEBCgAGBQJVefMFAAoJENc8OeVlgLOG4kkP/0aWFW6bbpvKMSoLajMbeKoe
5g7k2OP22eY7k/kiNpjDH4V+BQvl5kn9CC3t2g54QZ6pbmXi9E2Z1r2gyLtO6rCr
2lVkMqWk9Z59DYXrqA8CCAyUShXZkgXj/7EoONqpjK5Bzd2JseOKlxgPH8blG85c
br68KHzQDuNUTtVdcd6C3em2LyvgqatotHIOqQfUwKLHL4L/mSWbGrFgCBX8bSCi
cNXzK7ONALuAzM7G5E9JxdfDB+3p7cAFSEbLRG1R06+bnHrbW5ZCD59G6B87cnll
Cxh8jOGYXxv4l7Zk0Ane+OL49sXOcIGS9lQYeFmhbgh6WxTANRNtda8RF6XUt/bB
nwn2O3i8+fuCGBhxL3Ic3U9ad7uA2FwNvmgunpibcwIyzszPi77JdGBZoBsX0LDU
l6qONikeNMEK43tdgv9Umy2/QyuEDppwbzsjPpcu1xoLSCZzHXjJF1Cjl9ILIsYj
31egLuVvCp6GRc+tXD9V9KAOEmK12/u1yPEqrqJb8KH7vwPj7/AEoL0lPfRW9Fh8
qtzf/oG7F5GfPJx69N5M+ti7ZRu+Dlqelq8ckimfnjB9B17X/3HxYBp5IMP3gMUO
pY7cszJi2puFZsKxRM/kt5e7TNcqsgfhGVqn3FiVrEi1iNukgRu4X8XaQ7U0+/j8
r3aXmGPLpNil7g3M90t/
=/wlX
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: