diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-22 20:32:35 -0500 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2022-01-18 17:31:54 +0100 |
commit | bd974c260223bd65e2af5a013f9c16f84119b8d7 (patch) | |
tree | 751a9dbf87d8ac37fa3cb419660c6976684749ae | |
parent | e233357c4933de99163304207a85e104c22509d8 (diff) |
housekeeping
-rwxr-xr-x | src/chroot-tools/libremakepkg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg index 80d7444..93f5dfc 100755 --- a/src/chroot-tools/libremakepkg +++ b/src/chroot-tools/libremakepkg @@ -261,8 +261,7 @@ main() { fi else if [[ ! -f PKGBUILD ]]; then - # This is the message used by makepkg - error "PKGBUILD does not exist." + error "No PKGBUILD exists in the present directory." exit $EXIT_FAILURE fi fi @@ -302,17 +301,18 @@ main() { msg 'Using existing source package %s' "$srcpkg" # TODO: symlink $srcpkg to ${SRCPKGDEST}/${pkgbase}-${evr}-${CARCH}${SRCEXT} else - msg 'Downloading sources...' - local srcpkgdest - srcpkgdest="$(mktemp -d)" + local srcpkgdest="$(mktemp -d)" chown "$LIBREUSER:" "$srcpkgdest" trap "rm -rf -- ${srcpkgdest@Q}" EXIT + + msg 'Downloading sources...' SRCPKGDEST="$srcpkgdest" download_sources "$copydir" "$LIBREUSER" |& indent srcpkg=("$srcpkgdest"/*) if (( ${#srcpkg[@]} != 1 )); then error 'Something went funny with makepkg --allsource' return $EXIT_FAILURE fi + # We want to inject "-$pkgarch" in to srcpkg's filename, right before $SRCEXT local srcext pkgarch srcpkg_filename srcext="$(MAKEPKG_CONF=$copydir/etc/makepkg.conf get_var makepkg SRCEXT)" |