summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-05-08 10:19:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-05-08 10:19:16 +0000
commit32d816726178d61d54f24fa50aa06b6cbeef8dd2 (patch)
treebfc6cb48913dd0f7c182b2893133a76c6454e8bf /usr.sbin/pkg_add
parentb42f0ef53c605e7960d7fc8f1a147c2482808050 (diff)
fix pkg_info -S bug: multiple inheritance tricks signature into actually
ignoring version elements.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Signature.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Signature.pm b/usr.sbin/pkg_add/OpenBSD/Signature.pm
index f1a48e74662..49d4998f914 100644
--- a/usr.sbin/pkg_add/OpenBSD/Signature.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Signature.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Signature.pm,v 1.22 2018/12/16 10:45:38 espie Exp $
+# $OpenBSD: Signature.pm,v 1.23 2019/05/08 10:19:15 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@@ -32,6 +32,13 @@ sub always
{
return 1;
}
+
+package OpenBSD::PackingElement::Version;
+sub signature
+{
+ &OpenBSD::PackingElement::VersionElement::signature;
+}
+
package OpenBSD::PackingElement::Dependency;
sub signature_key
{