summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-10-19 13:42:46 +0000
committernia <nia@pkgsrc.org>2022-10-19 13:42:46 +0000
commit08cdf3e5cbd41b86912094dc008d16bd9c4abe23 (patch)
tree1d50dbdccd5f6eeee8cbad18bef2acd5894f6b2f /lang/python
parent1925896895b34e48b044b51e998d91dbf249e781 (diff)
downloadpkgsrc-08cdf3e5cbd41b86912094dc008d16bd9c4abe23.tar.gz
Make sure both the searched package and the found package match.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/versioned_dependencies.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/versioned_dependencies.mk b/lang/python/versioned_dependencies.mk
index 970cf6d79d3..66672470370 100644
--- a/lang/python/versioned_dependencies.mk
+++ b/lang/python/versioned_dependencies.mk
@@ -1,4 +1,4 @@
-# $NetBSD: versioned_dependencies.mk,v 1.87 2022/10/19 13:37:21 nia Exp $
+# $NetBSD: versioned_dependencies.mk,v 1.88 2022/10/19 13:42:46 nia Exp $
#
# This file determines which separate distribution of a Python
# package is used as dependency, depending on the Python version
@@ -49,7 +49,7 @@ _PKG_MATCHED= no
pkg:= ${pattern:C/:.*//}
type:= ${pattern:C/[^:]*//}
. for name py2dir py3dir in ${_SUPPORTED_PACKAGES}
-. if "${pkg}" == "cryptography"
+. if "${pkg}" == "${name}" && "${pkg}" == "cryptography"
# Special due to Rust handling.
_PKG_MATCHED= yes
. include "../../security/py-cryptography/dependency.mk"