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

Bug#647882: autopkgtest: NameError: global name 'f' is not defined

Package: autopkgtest
Version: 2.0.1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch precise


I just converted upower to DEP8, i. e. added an autopkgtest control
file. I noticed that when running adt-run as non-root, I get:

0 (master) martin at donald:~/debian/pkg-utopia/upower
$ adt-run --built-tree . --- adt-virt-null
adt-run: unexpected, exceptional, error:
Traceback (most recent call last):
  File "/usr/bin/adt-run", line 1833, in main
  File "/usr/bin/adt-run", line 1813, in process_actions
    stanzas = read_control(act, act.af, control_override)
  File "/usr/bin/adt-run", line 1274, in read_control
  File "/usr/bin/adt-run", line 1036, in parse
    r = rclass(nrname, f.base)
  File "/usr/bin/adt-run", line 1025, in __init__
    raise Unsupported(f.lno,
NameError: global name 'f' is not defined
adt-run: trace: ** stop
adt-run: trace: ** close, scratch=tb-scratch~/tmp/tmp.Ebg5Svqnrh:-/|/tmp/tmp.Ebg5Svqnrh/!

Simple patch attached. It just drops the line number, as in that
context we don't have any open file.

Thanks for considering,


Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autopkgtest.unsupported-error.patch
Type: text/x-diff
Size: 668 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20111107/2ca285ff/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20111107/2ca285ff/attachment.pgp>

Reply to: