From ff5642a271350490e758b206b1c57afb42f93d07 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 9 Dec 2018 02:20:04 +0000 Subject: [PATCH] add syncinfo test for symlinks --- schema/syncinfo.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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' -- 2.40.0