Give a better error message if trying to pbuilder a .changes file

Bug #567011 reported by Bryce Harrington
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBuilder
Fix Released
Unknown
pbuilder (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pbuilder

A common mistake I make when running pbuilder is to specify the .changes file instead of the .dsc. Probably because my fingers are trained that the .changes is the "important" file (since it's what I'll be uploading).

Unfortunately, pbuilder generates a very confusing and unfriendly set of error messages when you give it a .changes file instead of a .dsc file, and it's not at all clear that the problem is that you gave it the wrong kind of file.

I'd like to see pbuilder be given a clearer error message when this happens. Maybe something like,

    Error: <whatever>.changes is not in the right format (did you mean to build <whatever>.dsc?)

What would be even more slick would be if pbuilder could DoWhatIMean, and figure out the .dsc from the .changes filename, and pbuilder it. But at least giving a sane error message would be a step in the right direction.

Revision history for this message
Maarten Bezemer (veger) wrote :

Version 0.204 gives a good/better error when a .changes file is accidentally used:
  E: Command line parameter [<whatever>.changes] is not a valid .dsc file name

At least, the suggestion that a dsc file should be used is showed.

Changed in pbuilder (Ubuntu):
status: New → Fix Released
Revision history for this message
Maarten Bezemer (veger) wrote :

Version 0.206 gives this error:
  E: Command line parameter [<whatever>.changes] is does not exist

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644507

So upgrading to 0.206 gives an even better error message

Changed in pbuilder:
status: Unknown → Fix Released
Revision history for this message
Maarten Bezemer (veger) wrote :

I found a minor typo in the error message: 'is' should be removed.
So I send a bug report + patch to debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659703

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.