From d334334631c388caf40c7566d14793f15befac07 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 29 Jun 2019 18:20:53 +0300 Subject: [PATCH] kiss-new: Added manifests. --- kiss-new | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/kiss-new b/kiss-new index c9befe5..ae0e933 100755 --- a/kiss-new +++ b/kiss-new @@ -329,7 +329,7 @@ pkg_build() { # Copy the repository files to the package directory. # This acts as the database entry. - cp -Rf "$repo_dir" "$pkg_dir/$pkg/var/db/$kiss" + cp -Rf "$repo_dir" "$pkg_dir/$pkg/var/db/$kiss/" log "[$pkg]: Sucessfully built package." @@ -367,6 +367,19 @@ pkg_build() { done log "Stripped all binaries and libraries." + log "Generating package manifests..." + + for pkg; do + # This runs in a subshell so we can avoid a 'cd -' or 'cd $OLDPWD'. + ( + cd "$pkg_dir/$pkg" + find . -type d -exec printf '%s/\n' {} + -or -print + ) | sort -r | sed -e ss.ss > "$pkg_dir/$pkg/var/db/$kiss/$pkg/manifest" + + log "[$pkg]: Generated manifest." + done + + log "Generated all manifests." } pkg_checksums() {