Your message dated Tue, 02 Mar 2010 13:17:28 +0000
with message-id <[email protected]>
and subject line Bug#571767: fixed in rebuildd 0.3.9
has caused the Debian Bug report #571767,
regarding [PATCH] python-apt 0.8 API transition: Please update rebuildd to new 
API
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 [email protected]
immediately.)


-- 
571767: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571767
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rebuildd
Tags: patch
User: [email protected]
Usertags: python-apt-0-8-api

As part of the python-apt API transition mass bug filing[1],
I would like to ask you to update your package for the new
API using the attached patch.

Please make sure to adjust your dependencies to require
at least version 0.7.93.2 of python-apt; because older
versions may not provide all needed functions.

The first python-apt upload after the Squeeze release will
drop the old API and will get a 'Breaks' for all packages
which have not been adjusted yet. All not-fixed bugs will 
become release critical then.

[1] http://lists.debian.org/debian-devel/2010/02/msg00424.html

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
>From 716082338c677a17fc10e58a3ec8422cdee16755 Mon Sep 17 00:00:00 2001
From: Julian Andres Klode <[email protected]>
Date: Sat, 27 Feb 2010 22:33:45 +0100
Subject: [PATCH] Update to new python-apt API.

---
 debian/control       |    2 +-
 rebuildd/Package.py  |   11 ++++-------
 rebuildd/Rebuildd.py |    2 +-
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/debian/control b/debian/control
index 940ea23..8001b30 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Package: rebuildd
 Architecture: all
 Suggests: cowdancer
 Recommends: pbuilder, python-gdchart2, python-webpy
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, lsb-base, python-sqlobject, python-apt
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, lsb-base, python-sqlobject, python-apt (>= 0.7.91~)
 Description: build daemon aiming at rebuilding Debian packages
  This software allows you to manage a set of jobs. Each job is a package
  rebuilding task. Rebuilding is done by pbuilder (or cowbuilder if you want),
diff --git a/rebuildd/Package.py b/rebuildd/Package.py
index c538ce9..d14c993 100644
--- a/rebuildd/Package.py
+++ b/rebuildd/Package.py
@@ -18,11 +18,8 @@
 
 import sqlobject
 
-# apt warning make me crazzzyyy
-import warnings
-warnings.filterwarnings("ignore", module='apt')
-del warnings
-import apt
+import apt_pkg
+apt_pkg.init_system()
 
 class Package(sqlobject.SQLObject): 
     """Class implemeting a Debian package""" 
@@ -32,5 +29,5 @@ class Package(sqlobject.SQLObject):
     priority = sqlobject.StringCol(default=None)
 
     @staticmethod
-    def VersionCompare(a, b):
-        return apt.VersionCompare(a.version, b.version)
+    def version_compare(a, b):
+        return apt_pkg.version_compare(a.version, b.version)
diff --git a/rebuildd/Rebuildd.py b/rebuildd/Rebuildd.py
index 0ec7f74..1c5cecb 100644
--- a/rebuildd/Rebuildd.py
+++ b/rebuildd/Rebuildd.py
@@ -137,7 +137,7 @@ class Rebuildd(object):
                     packages = Package.selectBy(name=job.package.name)
                     candidate_packages = []
                     candidate_packages.extend(packages)
-                    candidate_packages.sort(cmp=Package.VersionCompare)
+                    candidate_packages.sort(cmp=Package.version_compare)
                     candidate_packages.reverse()
                     newjob = None
 
-- 
1.7.0


--- End Message ---
--- Begin Message ---
Source: rebuildd
Source-Version: 0.3.9

We believe that the bug you reported is fixed in the latest version of
rebuildd, which is due to be installed in the Debian FTP archive:

rebuildd_0.3.9.dsc
  to main/r/rebuildd/rebuildd_0.3.9.dsc
rebuildd_0.3.9.tar.gz
  to main/r/rebuildd/rebuildd_0.3.9.tar.gz
rebuildd_0.3.9_all.deb
  to main/r/rebuildd/rebuildd_0.3.9_all.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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien Danjou <[email protected]> (supplier of updated rebuildd 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 [email protected])


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

Format: 1.8
Date: Tue, 02 Mar 2010 13:56:27 +0100
Source: rebuildd
Binary: rebuildd
Architecture: source all
Version: 0.3.9
Distribution: unstable
Urgency: low
Maintainer: Julien Danjou <[email protected]>
Changed-By: Julien Danjou <[email protected]>
Description: 
 rebuildd   - build daemon aiming at rebuilding Debian packages
Closes: 571767
Changes: 
 rebuildd (0.3.9) unstable; urgency=low
 .
   * Update for python-apt API transition (Closes: #571767)
Checksums-Sha1: 
 62d9c7e2f4ef13a71556a5f2c93a8d4aba7c976e 842 rebuildd_0.3.9.dsc
 fe7d7b912e47e811764b5360e8bc228f992ae1f9 23664 rebuildd_0.3.9.tar.gz
 0a263edcdf6a7317b9e5c66e53c1f1f6db9ed1cd 25236 rebuildd_0.3.9_all.deb
Checksums-Sha256: 
 46082446c635ad4eac9573f69848a1f1c97e2ab4a95d1a1ae203c6add44a11f7 842 
rebuildd_0.3.9.dsc
 34b19126a6485cb8bb4c1ee9dce5b9ce9c8642b12caf204b5343c9518110c743 23664 
rebuildd_0.3.9.tar.gz
 eec43a14aa68f959ff169f9b489016966f917ba03fe9986a72af8511872291d2 25236 
rebuildd_0.3.9_all.deb
Files: 
 92d8122e5f56905408bb37d0d3b572d3 842 devel extra rebuildd_0.3.9.dsc
 ea3410d418b48ee7d96bb1876be8aeb2 23664 devel extra rebuildd_0.3.9.tar.gz
 d853f336ac5f110b3b5511982dbb5ed8 25236 devel extra rebuildd_0.3.9_all.deb

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

iEYEARECAAYFAkuNDPIACgkQpGK1HsL+5c3pggCffw5mtzI81GiawpYXArMXZ0AI
jIoAn1qMcNgKJJOAZuWRDx1Tl33ec4ID
=2eR8
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to