quilt-dev
[Top][All Lists]
Advanced

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

Re: [Quilt-dev] [PATCH] quilt refresh: Add ability to not break symlinks


From: Jean Delvare
Subject: Re: [Quilt-dev] [PATCH] quilt refresh: Add ability to not break symlinks
Date: Thu, 15 Jan 2015 11:58:36 +0100

Hi Jason,

On Mon, 12 Jan 2015 10:39:39 -0600, Jason Wessel wrote:
> On 01/12/2015 06:37 AM, Jean Delvare wrote:
> > Is there a legitimate use case for not setting QUILT_NO_RM_SYMLINKS?
> 
> Probably the most obvious is when what the link points to is not
> writable.

BTW, it just occurred to me that this would be easy enough to detect
and automatically adjust the behavior. If the patch is a link and its
target can be written to, preserve the link and overwrite its target;
otherwise rm the "patch" (be it a link or an actual file) and replace
it with an actual patch file.

So this leaves us with no excuse to introduce a global variable to
control the behavior.

Oh, and we did not yet discuss the case where the patch is a symbolic
link and it points to a file which has multiple hard links ;-D

-- 
Jean Delvare
SUSE L3 Support



reply via email to

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