diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-05 09:14:14 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-05 09:14:14 +0000 |
commit | f7fcfbed3ce5db3138c438adb929ee5c91f87843 (patch) | |
tree | 56320a82f237e2681f2284806ce7d9f4dad9b9ff | |
parent | 7ce9e6b347cfcb3f0416f11a1091e0e71e988736 (diff) | |
download | cpt-f7fcfbed3ce5db3138c438adb929ee5c91f87843.tar.gz |
kiss: Only run etcsums if /etc exists in package
FossilOrigin-Name: 94f1b9889796a2ff2689e4e250de7e2e50df6632a88d8708c8cf7204644ce87e
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -428,7 +428,7 @@ pkg_etcsums() ( # This funcion runs as a sub-shell to avoid having to 'cd' back to the # prior directory before being able to continue. - cd "$pkg_dir/$1" + cd "$pkg_dir/$1/etc" 2>/dev/null || return; cd .. find etc -type f -exec sha256sum {} + > "$pkg_dir/$1/$pkg_db/$1/etcsums" ) @@ -600,7 +600,7 @@ pkg_build() { pkg_fixdeps "$pkg" pkg_junk "$pkg" pkg_manifest "$pkg" - pkg_etcsums "$pkg" + pkg_etcsums "$pkg" ||: pkg_tar "$pkg" # Install only dependencies of passed packages. |