summaryrefslogtreecommitdiff
path: root/src/lib/release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/release.sh')
-rw-r--r--src/lib/release.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/release.sh b/src/lib/release.sh
index 700b2b0..acb3b54 100644
--- a/src/lib/release.sh
+++ b/src/lib/release.sh
@@ -141,7 +141,12 @@ pkgctl_release() {
# fail if an existing package specifies --repo
if [[ -n "${repo}" ]] && [[ -n ${REPO} ]]; then
- die 'Using --repo for packages that exist in official repositories is disallowed'
+ # allow unstable to use --repo
+ if [[ ${REPO} == *unstable ]]; then
+ repo=${REPO}
+ else
+ die 'Using --repo for packages that exist in official repositories is disallowed'
+ fi
fi
# fail if a new package does not specify --repo