diff --git a/db-functions b/db-functions
index 666098d495fd5bebbac0a698bef62b0deeb61fa5..9584c236ef7411b5e6feba6e70c67f34d39bc5e3 100644
--- a/db-functions
+++ b/db-functions
@@ -902,7 +902,7 @@ check_staged_versions() {
 			# TODO: check for dupliace any+native variant
 			if [[ "${layer_lookup["${layer}::${pkgname}::${pkgarch}"]+exists}" ]]; then
 				error 'Package %s is staged in multiple repos of the same stability layer: %s and %s' \
-					"${pkgfile##*/}" "${repo}" "${layer_lookup["${layer}::${pkgname}::repo"]}"
+					"${pkgfile##*/}" "${repo}" "${layer_lookup["${layer}::${pkgname}::${pkgarch}::repo"]}"
 				return 1
 			fi