Flags are treated as arguments if they come first
Bug #906278 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pkgme-devportal |
Fix Released
|
High
|
Unassigned |
Bug Description
$ PYTHONPATH=. ./bin/fetch-
will try to download source for the package '--database_
Related branches
lp:~jml/pkgme-devportal/source-and-binary
- James Westby: Approve
-
Diff: 378 lines (+172/-94)3 files modifiedbin/fetch-symbol-files (+1/-5)
devportalbinary/database.py (+162/-85)
devportalbinary/tests/test_database.py (+9/-4)
Changed in pkgme-binary: | |
status: | Triaged → Fix Committed |
Changed in pkgme-devportal: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Mon, 19 Dec 2011 12:23:34 -0000, Jonathan Lange <email address hidden> wrote: symbol- files --database_ path=local. db path=local. db', tai'.
> Public bug reported:
>
> $ PYTHONPATH=. ./bin/fetch-
> husathuaseouhhtai
>
> will try to download source for the package '--database_
> rather than the expected 'husathuaseouhh
There's two things here:
1. bin/fetch- symbol- files is just using argv[1], rather than using
optparse or anything, which is why it's acting on the option.
2. as optparse isn't being used configglue hasn't got anything to hook
to, so --database_path wouldn't do anything useful anyway at this
time.
The first is pretty easy to fix, the second probably needs a bit of
reworking of the config code to pull it up a couple of levels, and test
changes to adjust to that.
Thanks,
James