quilt-dev
[Top][All Lists]
Advanced

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

Re: [Quilt-dev] [PATCH 3/4] quilt.el: Load /etc/quilt.quiltrc if ~/.quil


From: Jean Delvare
Subject: Re: [Quilt-dev] [PATCH 3/4] quilt.el: Load /etc/quilt.quiltrc if ~/.quiltrc doesn't exist
Date: Mon, 18 May 2020 15:42:27 +0200

On Thu, 2020-05-14 at 21:59 +0200, Ondřej Lysoněk wrote:
> quilt loads /etc/quilt.quiltrc if ~/.quiltrc doesn't exist. Do the
> same in quilt.el.
> 
> Signed-off-by: Ondřej Lysoněk <address@hidden>
> ---
>  lib/quilt.el | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/quilt.el b/lib/quilt.el
> index 66fb41a..a872aab 100644
> --- a/lib/quilt.el
> +++ b/lib/quilt.el
> @@ -33,7 +33,11 @@
>    "Return the value of a configuration variable. Return nil if it is unset."
>    (or (with-current-buffer (generate-new-buffer " *cmd")
>          (shell-command
> -         (concat "test -f ~/.quiltrc && . ~/.quiltrc ;"
> +         (concat "if [ -f ~/.quiltrc ]; then"
> +              "  . ~/.quiltrc ;"
> +              "elif [ -f /etc/quilt.quiltrc ]; then"
> +              "  . /etc/quilt.quiltrc ;"
> +              "fi ;"
>                   "echo -n $" var)
>           t)
>          (unwind-protect

Nit-picking: alignment seems off by one char.

Other than that, I'm fine with the change, it's hard to believe it went
unnoticed for so long. Well I suppose most advanced quilt users have
their own customized ~/.quiltrc, but still.

-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]