Traceback when -a is not used

Bug #2006377 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ppa-dev-tools
Fix Released
High
Bryce Harrington

Bug Description

[ 11:20AM 10023 ] [ bdmurray@impulse:~/source-trees/ppa-dev-tools(main✗) ]
 $ scripts/ppa tests --show-urls ppa:brian-murray/autopkgtest
Traceback (most recent call last):
  File "/home/bdmurray/source-trees/ppa-dev-tools/scripts/ppa", line 916, in <module>
    retval = main(args)
             ^^^^^^^^^^
  File "/home/bdmurray/source-trees/ppa-dev-tools/scripts/ppa", line 890, in main
    config = create_config(lp, args)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdmurray/source-trees/ppa-dev-tools/scripts/ppa", line 416, in create_config
    if args.architectures is not None:
       ^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'architectures'

[ 11:23AM 10069 ] [ bdmurray@impulse:~/source-trees/ppa-dev-tools(main✗) ]
 $ git rev-parse HEAD
321446afc19cda9b835c1e2514605a97eb42e6f2

Related branches

summary: - Traceback when --a is not used
+ Traceback when -a is not used
Revision history for this message
Brian Murray (brian-murray) wrote :

The same type of error occurs without -r.

[ 2:40PM 10119 ] [ bdmurray@impulse:~/source-trees/ppa-dev-tools(main✗) ]
 $ scripts/ppa tests --show-urls -a armhf ppa:brian-murray/autopkgtest
Traceback (most recent call last):
  File "/home/bdmurray/source-trees/ppa-dev-tools/scripts/ppa", line 916, in <module>
    retval = main(args)
             ^^^^^^^^^^
  File "/home/bdmurray/source-trees/ppa-dev-tools/scripts/ppa", line 890, in main
    config = create_config(lp, args)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdmurray/source-trees/ppa-dev-tools/scripts/ppa", line 423, in create_config
    if args.releases is not None:
       ^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'releases'

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for reporting this, I'm able to reproduce it. I'm in process of adding command line arguments to the various commands, and argparse's behavior is not always intuitive... Anyway, I think this has an easy fix, hopefully there's no side-effects...

I'll have an MP up on this probably later today.

Changed in ppa-dev-tools:
status: New → In Progress
assignee: nobody → Bryce Harrington (bryce)
importance: Undecided → High
Revision history for this message
Bryce Harrington (bryce) wrote :

Fix now available in the 0.4.0 release, thanks!

Changed in ppa-dev-tools:
status: In Progress → 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.