diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-22 20:51:47 -0500 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2022-01-18 17:31:56 +0100 |
commit | 0ecee2212c7112694782c949f9e80938b41eb51a (patch) | |
tree | 9ddacfaa100dc6d2a112d907b61743b4905bf61c | |
parent | f6576a694485e33782a11af0e7068d6e505a3a70 (diff) |
revertme - debugging
-rwxr-xr-x | src/chroot-tools/libremakepkg | 8 |
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 |