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

Re: Bug#655179: pastebinit does not read .conf files from ~/.pastebin.d/ directory



On Sun, 2012-01-15 at 16:28 +0100, Maximilian Gerhard wrote:
> Am 15.01.2012 13:25, schrieb Adam D. Barratt:
> > Looking at the diff in the context of the original code, I'm a little
> > confused as to the intended functionality.  Assume that I
> > have /etc/pastebin.d/config1, /etc/pastebin.d/config2 and
> > ~/.pastebin.d/config2.  What is the expected resulting set of
> > configuration files which will be used by pastebinit?  From reading the
> > comments in the source code I assumed that it would
> > be /etc/pastebin.d/config1 and ~/.pastebin.d/config2.  However, the list
> > of configuration files ("pastebind") is reset on each iteration of the
> > outer loop, meaning that afaict the result would actually be just
> > ~/.pastebin.d/config2.
[...]
> You are right Adam. Adding configs to ~/.pastebin.d overrides
> everything, because of the "pastebind" configuration list reset. But
> that's the way it is upstream.

If that's the way it's intended to behave, then so be it, it just seemed
odd to me.  It's not the sort of thing we'd change in stable if it's
intentional (and not in any case before it was changed in unstable), so
we'll stick with the fix for the definite bug.

Regards,

Adam


Reply to: