diff options
author | B Stack <bgstack15@gmail.com> | 2017-07-23 15:09:37 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-07-23 15:09:37 -0400 |
commit | 78cb9f1c79d36d00fac138f7d7bdec9117092fb7 (patch) | |
tree | 235850938902ddfa9707dc53e37054e0bd9c8493 /usr | |
parent | Fixed deploy.sh: allow packages to be saved to a symlinked directory. (diff) | |
download | mirror-78cb9f1c79d36d00fac138f7d7bdec9117092fb7.tar.gz mirror-78cb9f1c79d36d00fac138f7d7bdec9117092fb7.tar.bz2 mirror-78cb9f1c79d36d00fac138f7d7bdec9117092fb7.zip |
updated get-files
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/share/mirror/build/get-files | 11 |
1 files changed, 6 insertions, 5 deletions
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) |