Importing local .dsc kills bzr import-dsc in new repository

Bug #303831 reported by Andrew McClain
6
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
High
James Westby

Bug Description

bzr: ERROR: exceptions.NameError: global name 'target_dist' is not defined

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/__init__.py", line 567, in run
    % target_dist)
NameError: global name 'target_dist' is not defined

bzr 1.9 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'import-dsc', '--distribution', '../libmogilefs-client-perl_1.08.orig.tar.gz']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [2.0.2]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.9.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.15dev0]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 303831] [NEW] Importing local .dsc kills bzr import-dsc in new repository

On Mon, 2008-12-01 at 01:27 +0000, Andrew McClain wrote:
> Public bug reported:
>
> bzr: ERROR: exceptions.NameError: global name 'target_dist' is not
> defined

Hi,

Thanks for the bug report, I can see the issue.

It is however crashing trying to report an error to you, that the
distribution you specified is not known.

Thanks,

James

Revision history for this message
Andrew McClain (awmcclain) wrote :

Also, I was trying to import the original tarball. Silly me. Sorry about that.

Tap the collective.
http://www.fluther.com

On Sun, Nov 30, 2008 at 5:45 PM, James Westby <email address hidden> wrote:
> On Mon, 2008-12-01 at 01:27 +0000, Andrew McClain wrote:
>> Public bug reported:
>>
>> bzr: ERROR: exceptions.NameError: global name 'target_dist' is not
>> defined
>
> Hi,
>
> Thanks for the bug report, I can see the issue.
>
> It is however crashing trying to report an error to you, that the
> distribution you specified is not known.
>
> Thanks,
>
> James
>
> --
> Importing local .dsc kills bzr import-dsc in new repository
> https://bugs.launchpad.net/bugs/303831
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: New
>
> Bug description:
> bzr: ERROR: exceptions.NameError: global name 'target_dist' is not defined
>
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
> return run_bzr(argv)
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
> ret = run(*run_argv)
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb/__init__.py", line 567, in run
> % target_dist)
> NameError: global name 'target_dist' is not defined
>
> bzr 1.9 on python 2.5.2 (linux2)
> arguments: ['/usr/bin/bzr', 'import-dsc', '--distribution', '../libmogilefs-client-perl_1.08.orig.tar.gz']
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
> plugins:
> builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [2.0.2]
> bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.9.1]
> launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
> rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
> svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.15dev0]
> *** Bazaar has encountered an internal error.
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
> including this traceback, and a description of what you
> were doing when the error occurred.
>

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

Hi,

I just committed a fix for the backtrace instead of error message problem.

If you are having problems beyond that then please file another bug.

Thanks,

James

Changed in bzr-builddeb:
assignee: nobody → james-w
importance: Undecided → High
milestone: none → 2.1
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.