Skip to content

Commit 4e6daf5

Browse files
committed
get_pkgname_from_originspec: Assert we do not already have a default FLAVOR originspec-pkgname
1 parent 58f93d0 commit 4e6daf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/share/poudriere/common.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8059,7 +8059,10 @@ get_pkgname_from_originspec() {
80598059
*) return 1 ;;
80608060
esac
80618061
# Yup, this was the default FLAVOR
8062-
shash_set originspec-pkgname "${_originspec_lookup}" "${_pkgname}" || :
8062+
if ! noclobber shash_set originspec-pkgname "${_originspec_lookup}" \
8063+
"${_pkgname}"; then
8064+
err 1 "Already had originspec-pkgname ${_originspec_lookup} set to ${_pkgname}"
8065+
fi
80638066
setvar "${var_return}" "${_pkgname}"
80648067
}
80658068

0 commit comments

Comments
 (0)