global name 'argd' is not defined

Bug #775742 reported by Moses Moore
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wajig (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: wajig

Minor bug. wajig throws a wobbly if provided with an unknown command that has a hyphen in it.

EXPECTED BEHAVIOUR:
moses@deunan:~$ wajig asdf
The command ASDF was not recognised.

OBSERVED BEHAVIOUR:
moses@deunan:~$ wajig asdf-asdf
Traceback (most recent call last):
  File "/usr/share/wajig/wajig.py", line 1009, in <module>
    main()
  File "/usr/share/wajig/wajig.py", line 267, in main
    select_command(command, args, verbose)
  File "/usr/share/wajig/wajig.py", line 998, in select_command
    format(command.upper(), argd[0])
NameError: global name 'argd' is not defined

valid commands with hyphens, such as 'fix-missing', still work as expected.

moses@deunan:~$ apt-cache policy wajig
wajig:
  Installed: 2.0.50.1
  Candidate: 2.0.50.1
  Version table:
 *** 2.0.50.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: wajig 2.0.50.1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon May 2 13:07:31 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_CA:en
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: wajig
UpgradeStatus: Upgraded to natty on 2011-04-01 (31 days ago)

Revision history for this message
Moses Moore (moses-mozai) wrote :
Revision history for this message
Tshepang Lekhonkhobe (tshepang) wrote : Re: [Bug 775742] Re: global name 'argd' is not defined

On Mon, May 2, 2011 at 19:11, Moses Moore <email address hidden> wrote:
> --
> You received this bug notification because you are subscribed to wajig
> in Ubuntu.
> https://bugs.launchpad.net/bugs/775742
>
> Title:
>  global name 'argd' is not defined

Can you check with version 2.1 that's in Debian Unstable. It should
have fixed the issue.

Revision history for this message
Moses Moore (moses-mozai) wrote :

> version 2.1 that's in Debian Unstable.

http://packages.debian.org/unstable/admin/wajig
$ curl -O 'http://http.us.debian.org/debian/pool/main/w/wajig/wajig_2.1_all.deb'
$ sudo dpkg -i wajig_2.1_all.deb
$ wajig asdf-asdf
The command ASDFASDF (entered as asdf-asdf) was not recognised.
Perhaps it is not yet implemented or you misspelt it.
Try 'wajig help' for further information.

Looks good. Hope it will arrive in natty-proposed soon.

Revision history for this message
Tshepang Lekhonkhobe (tshepang) wrote :

On Tue, May 3, 2011 at 04:13, Moses Moore <email address hidden> wrote:
>> version 2.1 that's in Debian Unstable.
>
> http://packages.debian.org/unstable/admin/wajig
> $ curl -O 'http://http.us.debian.org/debian/pool/main/w/wajig/wajig_2.1_all.deb'

This would have worked as well
$ wajig install
http://http.us.debian.org/debian/pool/main/w/wajig/wajig_2.1_all.deb

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Wajig 2.2, which is included in Ubuntu Oneiric, behaves like in comment #3. I'm therefore marking this as 'Fix Released'.

**
Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Oneiric Ocelot.

 If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Changed in wajig (Ubuntu):
status: New → 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.