Bug#358255: [Pbuilder-maint] Bug#358255: Make pbuilder fail with a meaningful error when .changes file is used instead of .dsc

Junichi Uekawa dancer at netfort.gr.jp
Sat Mar 25 05:31:14 UTC 2006


Hi

Please retain cc to the bug report.


> 1. Have pbuilder print out a warning if the file extension is not .dsc -
> something along the lines of 
> 
> "A .dsc file must be the last parameter of a pbuilder command.
> Please verify your command. 
> 
> Trying to proceed with the current command."



> 2. After printing the above messages try to parse the actual file. I think all
> you need is at least one line after the 
> "Files:"
> or you could look at all the lines until the first blank line. The difference
> between the .changes file and the .dsc file is that those lines in the
> .changes file have 5 fields separated by space(s) and the .dsc file has only 3
> fields. I think it shouldn't be fragile.

After a bit more thought, this sounds like over-engineering.  Is there
any existing tool that can be used for verification ?

How about using some of dpkg tools, they should be able to check.





regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project




More information about the Pbuilder-maint mailing list