import-dsc for *.dsc: exceptions.NameError: global name 'files' is not defined

Bug #156029 reported by Daniel Hahler
2
Affects Status Importance Assigned to Milestone
bzr-builddeb (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bzr-builddeb

If you use "bzr import-dsc --to test *.dsc" the following exception gets thrown:
bzr: ERROR: exceptions.NameError: global name 'files' is not defined

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 817, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 779, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 477, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/__init__.py", line 430, in run
    importer = DscImporter(files)
NameError: global name 'files' is not defined

bzr 0.90.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'import-dsc', '--to', 'test3', 'bzr-builddeb_0.19.dsc']

Revision history for this message
Daniel Hahler (blueyed) wrote :

The fix is quite simple.
Instead of "importer = DscImporter(files)" it should be "importer = DscImporter(files_list)"

I'll include the fix in the debdiff for bug 145019.

Revision history for this message
James Westby (james-w) wrote :

Thanks for the report. It's good to know that someone finally tried this command.

This is fixed upstream.

Thanks,

James

Changed in bzr-builddeb:
status: New → Fix Committed
James Westby (james-w)
Changed in bzr-builddeb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.