[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there anyway to prettify long *-Depends: lines?



Le Sun, May 13, 2012 at 02:00:04PM +1000, Ben Finney a écrit :
> Paul Elliott <pelliott@blackpatchpanel.com> writes:
> 
> > I have a really long Build-Depends: line.
> >
> > Multiple Build-Depends: lines is an error.
> 
> I think you mean “multiple Build-Depends fields”. Yes, that's an error.
> 
> But the field can span multiple lines by indenting the continuation lines:
> 
> =====
> Build-Depends:
>     foo,
>     bar,
>     baz
> =====

Hi all,

I also have seen and used:

=====
Build-Depends:
    foo,
    bar,
    baz,
=====

The trailing comma reduces the complexity of the diff when adding one package
to the tail of the list, and prevents errors caused by forgetting to add a
comma to the penulitmate.

This said, I am not completely sure if this complies with Policy's §7.1, which
mandates that “package names separated by commas”. 

It does not seem to break core toolchain programs, but is there somebody aware
of peripheral problems ?

Have a nice day,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


Reply to: