distro info bails out and prevents work from getting done when it doesn't have to

Bug #1194687 reported by Scott Kitterman
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

$ pbuilder-dist raring login
Traceback (most recent call last):
  File "/usr/bin/pbuilder-dist", line 462, in <module>
    main()
  File "/usr/bin/pbuilder-dist", line 456, in main
    sys.exit(subprocess.call(app.get_command(args)))
  File "/usr/bin/pbuilder-dist", line 286, in get_command
    if self.target_distro == UbuntuDistroInfo().devel():
  File "/usr/lib/python2.7/dist-packages/distro_info.py", line 92, in devel
    raise DistroDataOutdated()
distro_info.DistroDataOutdated: Distribution data outdated.

This is really ridiculous. Yes, it's outdated, but the data it has knows about raring, so there's no need to bail out like that. The package should only error out in cases where it can't continue. A traceback is a very poor raw to communicate a need for a package udpate.

Revision history for this message
Benjamin Drung (bdrung) wrote :

I agree. pbuilder-dist should handle this error case better, when distro-info raises this exception. There is nothing that distro-info could do differently.

affects: distro-info (Ubuntu) → ubuntu-dev-tools (Ubuntu)
Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
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.