Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-02-09 20:18:30 +0100
committerLevente Polyak <anthraxx@archlinux.org>2024-02-09 20:18:30 +0100
commit1cf402eae9d4b98f839ce9d116f807531cda7862 (patch)
treedb3e40d3d3d6639e26e9315567fb3ea2f4687f73 /src
parent0469d3c902d7b27dd56400e1fb229f47b011c4dc (diff)
fix(build): forward target repo options to the release subcommand
The adequate target repo options are not appropriately forwarded to the release subcommand if the auto-release options is activated. Previously we did not restrict the --repo option, which the build option has used as a shortcut. Since last release, this option is restricted to new packages that are not in any official repository yet. Fix this issue by forwarding the same target repo options that have been used during the build command and not forcefully the --repo options. Fixes #209 Component: pkgctl build Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/lib/build/build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh
index 9bd1e5d..171bb9a 100644
--- a/src/lib/build/build.sh
+++ b/src/lib/build/build.sh
@@ -154,6 +154,7 @@ pkgctl_build() {
(( $# <= 1 )) && die "missing argument for %s" "$1"
pkgctl_build_check_option_group_repo '--repo' "${REPO}" "${TESTING}" "${STAGING}"
REPO="${2}"
+ RELEASE_OPTIONS+=("--repo" "${REPO}")
shift 2
;;
--arch)
@@ -204,11 +205,13 @@ pkgctl_build() {
-s|--staging)
pkgctl_build_check_option_group_repo '--staging' "${REPO}" "${TESTING}" "${STAGING}"
STAGING=1
+ RELEASE_OPTIONS+=("--staging")
shift
;;
-t|--testing)
pkgctl_build_check_option_group_repo '--testing' "${REPO}" "${TESTING}" "${STAGING}"
TESTING=1
+ RELEASE_OPTIONS+=("--testing")
shift
;;
-c|--clean)
@@ -495,7 +498,7 @@ pkgctl_build() {
# release the build
if (( RELEASE )); then
- pkgctl_release --repo "${pkgrepo}" "${RELEASE_OPTIONS[@]}"
+ pkgctl_release "${RELEASE_OPTIONS[@]}"
fi
# reset common PKGBUILD variables