crashes in chroot with no HOME set
Bug #1065873 reported by
Michael Vogt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In a pbuilder chroot it crashes without HOME set:
# adt-run --no-built-binaries --built-tree=. --- adt-virt-null
adt-run: trace: ** init
adt-run: trace: ** start
adt-run: trace: $ vserver: adt-virt-null
adt-run: unexpected, exceptional, error:
Traceback (most recent call last):
File "/usr/bin/adt-run", line 1881, in main
finalise_
File "/usr/bin/adt-run", line 736, in finalise_options
parser.
NameError: global name 'parser' is not defined
To post a comment you must log in.
Thanks for your report.
The error handling code is indeed broken, parser is not defined in this scope startswith( '~/'): error(" HOME environment variable"
in runner/adt-run:
if opts.gnupghome.
try: home = os.environ['HOME']
except KeyError:
parser.
" not set, needed for --gnupghome=`%s"
% opts.gnupghome)
Well the result would be the same if $HOME is not defined but at least it would fail nicely