Bug#717191: adt-run: ImportError: No module named debian with old python-debian version

2013-07-19 Thread Martin Pitt
tag 717191 pending
thanks

Hey Christoph,

Christoph Berg [2013-07-17 20:53 +0200]:
 for apt.postgresql.org, we are running autopkgtest on lots of
 distributions, including Ubuntu's lucid release. There, adt-run fails:
 
 # adt-run
 Traceback (most recent call last):
   File /usr/bin/adt-run, line 39, in module
 from debian import deb822, debian_support
 ImportError: No module named debian

How about 
http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=commitdiff;h=cb70f3cad
 ?

That avoids the deprecation warning when running with current
releases.

Thanks,

Martin

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


signature.asc
Description: Digital signature


Bug#717191: adt-run: ImportError: No module named debian with old python-debian version

2013-07-17 Thread Christoph Berg
Package: autopkgtest
Version: 2.2.4
Severity: normal
Tags: patch

Hi,

for apt.postgresql.org, we are running autopkgtest on lots of
distributions, including Ubuntu's lucid release. There, adt-run fails:

# adt-run
Traceback (most recent call last):
  File /usr/bin/adt-run, line 39, in module
from debian import deb822, debian_support
ImportError: No module named debian

The following patch fixes the problem:

--- adt-run~2013-07-17 20:50:02.152820307 +0200
+++ adt-run 2013-07-17 20:48:58.594050252 +0200
@@ -36,7 +36,7 @@
 import fnmatch
 import shutil
 import copy
-from debian import deb822, debian_support
+from debian_bundle import deb822, debian_support
 
 from optparse import OptionParser
 signal.signal(signal.SIGINT, signal.SIG_DFL) # undo stupid Python SIGINT thing

adt-run continues to start up just fine on my wheezy box, so it seems
safe to do this change in the sid version, where we pull the
autopkgtest package from.

(Alternatively, the dependency on python-debian should be fixed.)

Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/


signature.asc
Description: Digital signature