From 32d816726178d61d54f24fa50aa06b6cbeef8dd2 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 8 May 2019 10:19:16 +0000 Subject: fix pkg_info -S bug: multiple inheritance tricks signature into actually ignoring version elements. --- usr.sbin/pkg_add/OpenBSD/Signature.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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 # @@ -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 { -- cgit v1.2.3