Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Apr 2005 18:03:41 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Sam Lawrance <boris@brooknet.com.au>
Cc:        ports@freebsd.org
Subject:   Re: Why can't pkg-plist list directories?
Message-ID:  <20050428080341.GM1175@k7.mavetju>
In-Reply-To: <1114610923.45212.16.camel@dirk.no.domain>
References:  <1114610923.45212.16.camel@dirk.no.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 28, 2005 at 12:08:41AM +1000, Sam Lawrance wrote:
> Aside from the fact that the pkg_* tools don't currently support it, is
> there a reason why we use @dirrm in packing lists rather than just
> listing the directories?

Foolproofing.

If I copy a file to etc/foo where foo is a directory, but I forgot
to create the directory first I end up with the file foo in etc/.
Having the pkg-plist explicitely stating it as a directory, it will
throw an error and the maintainer (and eeeeeeverybody else) will
know he made a mistake.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050428080341.GM1175>