From: Nathan Wagner Date: Sun, 9 Dec 2018 02:20:04 +0000 (+0000) Subject: add syncinfo test for symlinks X-Git-Tag: v0.4.0~3 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=ff5642a271350490e758b206b1c57afb42f93d07 add syncinfo test for symlinks --- diff --git a/schema/syncinfo.sql b/schema/syncinfo.sql index cbdffce..1a76c26 100644 --- a/schema/syncinfo.sql +++ b/schema/syncinfo.sql @@ -78,7 +78,14 @@ PC.status not in ('installed','removing','updating') union select case -when PFI.filetype is PFC.filetype +when PFI.filetype is not 'l' + and PFI.filetype is PFC.filetype + and PFI.mode is PFC.mode and PFI.username is PFC.username + and PFI.groupname is PFC.groupname and PFI.hash is PFC.hash + then 'noop' +when PFI.filetype is 'l' + and PFI.target is PFC.target + and PFI.filetype is PFC.filetype and PFI.mode is PFC.mode and PFI.username is PFC.username and PFI.groupname is PFC.groupname and PFI.hash is PFC.hash then 'noop'