[pull-debian-source] wildcard support

Bug #964731 reported by Scott Kitterman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

It would be nice if pull-debian-source would support a wildcard. In any case, it shouldn't crash.

$ pull-debian-source flufl*
Traceback (most recent call last):
  File "/usr/bin/pull-debian-source", line 134, in <module>
    main()
  File "/usr/bin/pull-debian-source", line 108, in main
    source_package = source_package_for(package, suite)
  File "/usr/bin/pull-debian-source", line 59, in source_package_for
    data = json.load(urllib2.urlopen(url))['r']
  File "/usr/lib/python2.7/json/__init__.py", line 278, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting object: line 1 column 5 (char 5)

Benjamin Drung (bdrung)
Changed in ubuntu-dev-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Stefano Rivera (stefanor) wrote :

Handling wildcards is non-trivial. It requires package lists.

But the crash is easy enough.

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

Committed an error message for parse failures in rev 1299.

Enrico is fixing the bug in DDE that caused it to return unparseable JSON.

Changed in ubuntu-dev-tools (Ubuntu):
importance: Medium → Wishlist
Benjamin Drung (bdrung)
summary: - pull-debian-source wildcard support
+ [pull-debian-source] wildcard support
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.