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

Bug#701477: lintian: Should it support XDG?



* Niels Thykier <niels@thykier.net>, 2013-02-23, 17:08:
* lintianrc (ignoring $LINTIAN_ROOT/lintianrc for a moment):
  NOW: $HOME/.lintian/rc:/etc/lintianrc
  XDG: $HOME/.config/lintianrc:/etc/xdg/lintianrc

I agree with Lanoxx that having a separate directory for Lintian configuration would be nice.

Note the lintianrc file currently is special cased to prefer $LINTIAN_ROOT/lintianrc above all other paths. It seems a bit weird,

Yeah, that's odd.

To be honest, I would be in favour of simply removing the LINTIAN_ROOT/lintianrc case unless there is still a use for it, which I simply missed (regardless of whether we adopt XDG or not).

Agreed.

Current LINTIAN_ROOT is always last in the search dir. I have no intention of changing that. Though with $XDG_DATA_DIRS, /usr/share/lintian could appear earlier than last. I suggest we handle that XDG_DATA_DIRS similar to dirs passed via --include-dirs

This is going to be a pickle... When I set LINTIAN_ROOT to something non-default, I expect that /usr/share/lintian won't be on the search path. I think we should completely ignore XDG_DATA_DIRS if LINTIAN_ROOT is set.

Or maybe ignoring XDG_*_DIRS completely (and honouring only XDG_*_HOME) is the way to go? That would make keeping backwards compatiblity easier.

--
Jakub Wilk


Reply to: