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

Bug#523998: marked as done (python-apt: Package class should have a get_version method)



Your message dated Fri, 05 Jun 2009 18:17:31 +0000
with message-id <E1MCdyt-0005uy-Ee@ries.debian.org>
and subject line Bug#523998: fixed in python-apt 0.7.91
has caused the Debian Bug report #523998,
regarding python-apt: Package class should have a get_version method
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.)


-- 
523998: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523998
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python-apt
Version: 0.7.7.1+nmu1
Severity: wishlist
Tags: patch

The Package class should provide a nice way to get a corresponding Version 
instance by specifing the version string.

E.g.: Package.get_version("242-1")

See the attached patch

Cheers,

Sebastian

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.7-6-4. 0.7.20.2    Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6 0.7.20.2    APT utility programs
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  libgcc1                      1:4.3.2-1.1 GCC support library
ii  libstdc++6                   4.3.2-1.1   The GNU Standard C++ Library v3
ii  lsb-release                  3.2-20      Linux Standard Base version report
ii  python                       2.5.2-3     An interactive high-level object-o
ii  python-central               0.6.8       register and build utility for Pyt

python-apt recommends no packages.

Versions of packages python-apt suggests:
pn  python-apt-dbg                <none>     (no description available)

-- no debconf information
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: renate@unstable.virtual-20090410204237-qwwl1a7f9yy1ogci
# target_branch: ../debian-sid/
# testament_sha1: b87ebcdf3d99a10932db8528b7f3b8365763ba41
# timestamp: 2009-04-10 22:43:31 +0200
# base_revision_id: jak@debian.org-20090401154054-zh33a3avjszl3fg7
# 
# Begin patch
=== modified file 'apt/package.py'
--- apt/package.py	2009-04-01 14:27:15 +0000
+++ apt/package.py	2009-04-10 20:42:37 +0000
@@ -872,6 +872,13 @@
         """
         return [Version(self, ver) for ver in self._pkg.VersionList]
 
+    def get_version(self, version):
+        """Get the Version instance matching the given version string."""
+        for ver in self.versions:
+            if ver.version == version:
+                return ver
+        return None
+
     # depcache actions
 
     def markKeep(self):

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWb2VsC0AAZNfgERUUWf//3LD
TQC////wUAP2bxuNodI22PYSSKekamaT0j0einim1DRoGgAAyGglEpjRmknkiD1GgAAAAAAEiQIQ
NTUeU/VPKA009QyAaMnqHqDQMpI0D0TRoDBA0aGgMgA00wEkkaaTTJiZU9o0KeU/SZJtPSm1AGTR
o0VodM82wW+ebuNTHRP2cNBGFSKtnV2QB2LnRWOVECoXG/QfLFjc8TlOqeBOCKLm6/nr5Ug46O7t
mXX2KzrH2pHF3MsmY0rInKkHn6t1eGXTu2anjLbxd1/q540JUv2zvIPn6PkuoZtXS6NQYBVxFRnU
NReyNsVOEGtxOSxKk6hJrfFdqkExO7kJVB2CbqIiE5PXAYQ4fyMlmRGmQUsoR7Lt9RH8zM47SnaX
uVMZnH2NqYyOeaRVltwvXGjNlXxEaBV9NIEKi2wjvLYEAnIyaG9SKLdbeRnStvMeCpbJSMlujM9T
gi9agYSIFMURziQ9LsMSw1zOPIDDLePgkklkTQSdgVo4YUjhWllBiU7kUXTnuZRIs1Ijy6+wYZMC
8kKJUbb7rBihSiSHsqkSwQmQLqE7TSKi0vE4+bdhAnJjMRzizp8ZOD+8WKmYKWOjHd6UXNKO5Noa
ZweDf1nDbK0FnHVP2hmU0sXi0zsdc+sBqIgaseM362NcQ9PmpO5UeBxViepIMDrO2N7BTEe4YqRg
XiqNRYf5iZLZ5twK5xYGwzm4P4HVLwuKHIYfZQLngEEtC81zeQK84wOSwzLgHQtOY4vIjMbSFsTJ
W4iniY+C3zU4lMhiZVEmjMiKCU8rjyD75dZ44Ti54uGjlLwDuCdoGk5pbiU4Eqco6uaAY9cQmtdh
sJf1cLiepIAyZDKFlL4/6MBeGk9i9LFlSMig/QQpOl4tIMMDx5Wbl48Oza35ZeMRWDZVgKYDTf8G
NigK4sTWAwqVNtep0wXtE7usOV9a7FR6I24D85SlPLcx4hkmxtCBstkfmSDkSW9oH6KvBiRVFwMZ
gcljVYrFuJ65LEmK3l+3Ot3OoqiQ+o4T3HRursKkpXwpMjQQpg0jAklJUCaYft/G09SUyAMyHJy3
d8kBalirwgJcRg9S90qKspwD3g5TPU9EmdqYxUCQK5ct++Ni6qRUytU4cDBbdZKZE7C6e7vaeiKt
SzBnzbCS5lEtYUQqZJQQu+RUb5z05slgbsGk2MTiyuL0mzXYLh8VKnBdCkQK3IotIigEsMC5rVXQ
SIC9Mak1pahLBMuCPB3UPZ6pOQprlISVjmQMAQEKbEEsAC8VCrCDxBk4jhwKiax3eJ+JPhrE+cyr
eUP8XckU4UJC9lbAtA==

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

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:

python-apt-dbg_0.7.91_amd64.deb
  to pool/main/p/python-apt/python-apt-dbg_0.7.91_amd64.deb
python-apt_0.7.91.dsc
  to pool/main/p/python-apt/python-apt_0.7.91.dsc
python-apt_0.7.91.tar.gz
  to pool/main/p/python-apt/python-apt_0.7.91.tar.gz
python-apt_0.7.91_amd64.deb
  to pool/main/p/python-apt/python-apt_0.7.91_amd64.deb



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 523998@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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Fri, 05 Jun 2009 19:36:45 +0200
Source: python-apt
Binary: python-apt python-apt-dbg
Architecture: source amd64
Version: 0.7.91
Distribution: experimental
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-dbg - Python interface to libapt-pkg (debug extension)
Closes: 481061 523998 525134 527543
Changes: 
 python-apt (0.7.91) experimental; urgency=low
 .
   [ Julian Andres Klode ]
   * Rename where needed according to PEP 8 conventions (Closes: #481061)
   * Where possible, derive apt.package.Record from collections.Mapping.
   * ActionGroups can be used as a context manager for the 'with' statement.
   * utils/migrate-0.8.py: Helper to check Python code for deprecated functions,
     attributes,etc. Has to be run from the python-apt source tree, but can be
     used for all Python code using python-apt.
   * debian/control: Only recommend libjs-jquery (Closes: #527543).
 .
   [ Stefano Zacchiroli ]
   * debian/python-apt.doc-base: register the documentation with the
     doc-base system (Closes: #525134)
 .
   [ Sebastian Heinlein ]
   * apt/package.py: Add Package.get_version() which returns a Version instance
     for the given version string or None (Closes: #523998)
Checksums-Sha1: 
 7db1a920e99437f6af248afacb0bb2a178cf0a41 1206 python-apt_0.7.91.dsc
 d5d80c467cc79c2bb408413ea9de891739ce6e41 696938 python-apt_0.7.91.tar.gz
 0feea5afd5dbcd81edbebef7f7777ffcc8b1696a 535492 python-apt_0.7.91_amd64.deb
 9fd4d849d7d7f3e9d7a441d03c6f792e0cc4b28c 2342294 python-apt-dbg_0.7.91_amd64.deb
Checksums-Sha256: 
 4d013a8186dde0ccf94f2792d53d17355990b028224caa443efaaa7d9d2d4dff 1206 python-apt_0.7.91.dsc
 65fbf854155e34cddac25c6c8dddc2824ad571876a9850c586ae833377b0099d 696938 python-apt_0.7.91.tar.gz
 e0a0564ce832abb91bba023ad9debb1a2275b248a7de85d6aa44daa09bc76b60 535492 python-apt_0.7.91_amd64.deb
 3d268c0287149e589acf3a909381ac3e1a9c57b0fe5a3cf6e97cb9676ac8d8a0 2342294 python-apt-dbg_0.7.91_amd64.deb
Files: 
 2cd04f3add696860379ad13cba9464b3 1206 python optional python-apt_0.7.91.dsc
 dc4180b119d217e29660122735581a95 696938 python optional python-apt_0.7.91.tar.gz
 092d42c8f6da5f4c36effb4e1d00f7ef 535492 python optional python-apt_0.7.91_amd64.deb
 994940fa4488f0c40eaea87d2a5f42c0 2342294 debug extra python-apt-dbg_0.7.91_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREDAAYFAkopXjcACgkQrCpf/gCCPsKwEACdGKD5l9q8QHsKDgU5iJQGD/1H
WngAnAvzaKy/FNVWXUZTn7OrX+OmT1Vo
=HHCI
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: