merge-upstream fails for new packages

Bug #772225 reported by Alexandros Frantzis
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
Medium
Jelmer Vernooij

Bug Description

When trying to create a new package from scratch (no debian/ dir etc) merge-upstream fails with:

$ bzr merge-upstream /tmp/glcompbench-11.04.tar.gz --package glcompbench --version 11.04 --distribution ubuntu

bzr: ERROR: exceptions.UnboundLocalError: local variable 'larstiq' referenced before assignment

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 637, in run
    package, distribution)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 620, in _get_changelog_info
    changelog, larstiq)
UnboundLocalError: local variable 'larstiq' referenced before assignment

The error happens with both the natty version and latest bzr revision.

Related branches

summary: - Cannot use merge-upstream for a new package
+ merge-upstream fails for new packages
Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: New → Triaged
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: In Progress → Fix Committed
milestone: none → 2.8
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

With the latest changes in trunk the errors have gone away, but the command still doesn't work correctly (at least not as I would expect):

$ bzr init hello && cd hello
$ bzr merge-upstream ../hello-2.7.tar.gz --package hello --version 2.7 --distribution natty
Using version string 2.7.
An entry for the new upstream version has been added to the changelog.
$ bzr st
added:
  debian/
unknown:
  debian/changelog
$ ls
debian

The tarball contents aren't included in the branch.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 772225] Re: merge-upstream fails for new packages

  affects bzr-builddeb
  summary "Default build_type in empty branch should be normal, not
merge"

On Tue, 2011-05-03 at 12:09 +0000, Alexandros Frantzis wrote:
> With the latest changes in trunk the errors have gone away, but the
> command still doesn't work correctly (at least not as I would expect):
>
> $ bzr init hello && cd hello
> $ bzr merge-upstream ../hello-2.7.tar.gz --package hello --version 2.7 --distribution natty
> Using version string 2.7.
> An entry for the new upstream version has been added to the changelog.
> $ bzr st
> added:
> debian/
> unknown:
> debian/changelog
> $ ls
> debian
>
> The tarball contents aren't included in the branch.

I guess the detection mechanism doesn't see any files and thus considers
the packaging branch a merge branch. I'm filing a separate bug about
this.

Cheers,

Jelmer

summary: - merge-upstream fails for new packages
+ Default build_type in empty branch should be normal, not
summary: - Default build_type in empty branch should be normal, not
+ Default build_type in empty branch should be normal, not merge
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I was trying to create a new bug via email, but failed. Now filed here: bug 776528

summary: - Default build_type in empty branch should be normal, not merge
+ merge-upstream fails for new packages
Max Bowsher (maxb)
Changed in bzr-builddeb:
milestone: 2.8 → 2.7.4
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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