aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-05 09:16:50 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-05 09:16:50 +0000
commit95a7d4c583a5d0839dc4972396f87b59755c42b7 (patch)
tree97850e7cbb652497a7b1294e18617f1c9915a677 /kiss
parentf7fcfbed3ce5db3138c438adb929ee5c91f87843 (diff)
downloadcpt-95a7d4c583a5d0839dc4972396f87b59755c42b7.tar.gz
kiss: Only run etcsums if /etc exists in package
FossilOrigin-Name: 563eebec57c7621da98f709f3c9e2b9b90a7a9b635d3ab7c0a3c2b5e9ef84c4c
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index 6761066..1b2e249 100755
--- a/kiss
+++ b/kiss
@@ -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/etc" 2>/dev/null || return; cd ..
+ cd "$pkg_dir/$1/etc" 2>/dev/null || return 0; 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.