Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/build/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/build/build.sh')
-rw-r--r--src/lib/build/build.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh
index 8e9a3bb..9bd1e5d 100644
--- a/src/lib/build/build.sh
+++ b/src/lib/build/build.sh
@@ -337,7 +337,12 @@ pkgctl_build() {
# fail if an existing package specifies --repo
if [[ -n "${repo}" ]] && [[ -n ${pkgrepo} ]]; then
- die 'Using --repo for packages that exist in official repositories is disallowed'
+ # allow unstable to use --repo
+ if [[ ${pkgrepo} == *unstable ]]; then
+ repo=${pkgrepo}
+ else
+ die 'Using --repo for packages that exist in official repositories is disallowed'
+ fi
fi
# assign auto-detected target repository