[lp-project-upload] NameError for new_milestone when not specified

Bug #797170 reported by Jelmer Vernooij
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

Trying to upload a new version of bzr-builder without specifying a new milestone, I get:

gwenhwyvar:~/src/bzr-builder/trunk% lp-project-upload bzr-builder 0.7 bzr-builder-0.7.tar.gz
/usr/lib/python2.7/dist-packages/lazr/restfulclient/__init__.py:19: UserWarning: Module paste was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path
  import pkg_resources
Traceback (most recent call last):
  File "/usr/bin/lp-project-upload", line 159, in <module>
    main()
  File "/usr/bin/lp-project-upload", line 148, in main
    if new_milestone is not None:
UnboundLocalError: local variable 'new_milestone' referenced before assignment

Revision history for this message
Stefano Rivera (stefanor) wrote :

didrocks already committed a fix for this. I'll mention this bug in the changelog.

Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.125ubuntu1

---------------
ubuntu-dev-tools (0.125ubuntu1) oneiric; urgency=low

  [ Benjamin Drung ]
  * backportpackage: Use --force-bad-version instead of --allow-lower-version
    (which requires a parameter) for debchange.
  * Adjust EOL date of Ubuntu 9.10 "Karmic Koala".

  [ Stefano Rivera ]
  * ubuntutools.archive: Display any errors rmadison emits, rather than
    guessing at the cause. (LP: #788447)
  * sponsor-patch: Use dch --release instead of --edit to work with
    DEBCHANGE_RELEASE_HEURISTIC=changelog.

  [ Dustin Kirkland ]
  * doc/lp-project-upload.1, lp-project-upload:
    - add support for optionally specifying files containing the changelog
      and release notes for the release
    - allows scripts to avoid the interactive editors
    - document these changes in the manpage

  [ Didier Roche ]
  * lp-project-upload:
    - fix a bug when new milestone wasn't specified (LP: #797170)
  * get-build-deps:
    - fix a wrong parser when some build-dep have an epoch

  [ Brian Murray ]
  * grab-attachments, doc/grab-attachments.1:
    - add in download attachments from duplicates
    - add in download attachments from all bugs about a package
    - document new options in the manpage
 -- Didier Roche <email address hidden> Fri, 24 Jun 2011 11:50:17 +0200

Changed in ubuntu-dev-tools (Ubuntu):
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.