From 03eba11d8e94f6396bcf565eb2351595b8e6c47d Mon Sep 17 00:00:00 2001 From: langfingaz Date: Sun, 2 May 2021 18:02:20 +0200 Subject: [PATCH] minor --- build-pkg.sh | 15 ++++++++++++++- pkg/de-p1st-base-efi/PKGBUILD | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/build-pkg.sh b/build-pkg.sh index 68667cb..7d757ce 100755 --- a/build-pkg.sh +++ b/build-pkg.sh @@ -14,7 +14,10 @@ function build-pkg() { # build and copy to /home/custompkgs - aur build -c || return $? + aur build -c || { + echo "Package ${PKG} failed!"; + FAILED_PKGS+=("${PKG}"); + } ## build # makepkg -Ccsr || return $? @@ -37,6 +40,8 @@ function main() { # either zero arguments to build all packages # or the names of the packages to build as arguments + FAILED_PKGS=() + if [ "$#" -gt "0" ]; then # at least one argument is given @@ -51,7 +56,15 @@ function main() { fi # push remote repository + echo "" arch-repo-push-new || exit + + if [ "${#FAILED_PKGS[@]}" -gt "0" ]; then + echo "" + echo "Warning: Not all packages were build successfully: ${FAILED_PKGS[*]}" + return 1 + + fi } main "$@" diff --git a/pkg/de-p1st-base-efi/PKGBUILD b/pkg/de-p1st-base-efi/PKGBUILD index d271fe2..96c8bfb 100644 --- a/pkg/de-p1st-base-efi/PKGBUILD +++ b/pkg/de-p1st-base-efi/PKGBUILD @@ -4,7 +4,7 @@ _reponame=arch pkgname="de-p1st-$_pkgname" pkgver=0.1.2 pkgrel=1 -pkgdesc="Arch Linux base packages" +pkgdesc="base packages for headless Arch installation" arch=('any') url="https://codeberg.org/privacy1st/${_reponame}" license=('MIT')