From 78cb9f1c79d36d00fac138f7d7bdec9117092fb7 Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 23 Jul 2017 15:09:37 -0400 Subject: updated get-files --- usr/share/mirror/build/get-files | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr/share') diff --git a/usr/share/mirror/build/get-files b/usr/share/mirror/build/get-files index 689c186..6fb7125 100755 --- a/usr/share/mirror/build/get-files +++ b/usr/share/mirror/build/get-files @@ -15,12 +15,13 @@ find * -mindepth 1 ! -name "${package}.spec.$$.swp" \ ! -type d \ ! -regex '.*.swp' \ ! -regex '.*?DEBIAN.*?' \ - | sed -e ' + | sed -r -e ' s/^/\//; -s/\(.*\.txt\)/%doc %attr(444, -, -) \1/; -s/\(.*\.\(conf\|cron\)\|.*sudoers\.d\|\/usr\/share\/mirror\/scripts\/.\+\)/%config \1/; -s/\(.*bin.*\)/%verify(link) \1/; -s/\(.*\)\.py$/\1\.py\n\1\.pyc\n\1\.pyo/; +s/(.*\.txt|usr\/share\/doc\/.*)/%doc %attr(444, -, -) \1/ +s/(.*bin.*)/%verify(link) \1/; +s/(.*)\.py$/\1\.py\n\1\.pyc\n\1\.pyo/; +s/(.*\/sudoers\.d\/.*)/%attr(440, root, root) \1/; +s/(.*\.(conf|cron)|.*sudoers\.d|\/usr\/share\/mirror\/scripts\/.+)/%config \1/; ' ;; deb) -- cgit