summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-01-22 20:51:47 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2021-07-26 19:20:09 -0400
commit7fa8f6128669d0946cda4533f88018fbadeee5d1 (patch)
treee6926354e0525b755265cd6624fa80a0650eccf8
parent3a50e13e0daa4ff301c6f2863855d533bd0d039d (diff)
revertme - debugging
-rwxr-xr-xsrc/chroot-tools/libremakepkg8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index 93f5dfc..995a7ad 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -303,11 +303,13 @@ main() {
else
local srcpkgdest="$(mktemp -d)"
chown "$LIBREUSER:" "$srcpkgdest"
- trap "rm -rf -- ${srcpkgdest@Q}" EXIT
-
+# trap "rm -rf -- ${srcpkgdest@Q}" EXIT
+trap "echo TRAP ${srcpkgdest@Q} ; ls ${srcpkgdest@Q} ; rm -rf -- ${srcpkgdest@Q}" EXIT
+DBG "libremakepkg::main() ->download_sources IN srcpkgdest='$srcpkgdest'"
msg 'Downloading sources...'
SRCPKGDEST="$srcpkgdest" download_sources "$copydir" "$LIBREUSER" |& indent
srcpkg=("$srcpkgdest"/*)
+DBG "libremakepkg::main() ->download_sources OUT srcpkg=${srcpkg[@]}" ; ls "$srcpkgdest" ;
if (( ${#srcpkg[@]} != 1 )); then
error 'Something went funny with makepkg --allsource'
return $EXIT_FAILURE
@@ -329,6 +331,8 @@ main() {
trap EXIT
fi
+DBG "libremakepkg::main() build \"$copydir\" \"$srcpkg\" \"$repack\" \"${makepkg_args[@]}\""
+
# Build
msg 'Starting to build the package...'
trap "exit_copy '$copydir' '$LIBREUSER'" EXIT