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>
This commit is contained in:
parent
0469d3c902
commit
1cf402eae9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue