From 3852ac0e9c7c0efd9ba6bafa62561fd636fdeab3 Mon Sep 17 00:00:00 2001 From: espie Date: Thu, 20 Feb 2020 16:40:49 +0000 Subject: forgot to actually put "nodebug" in state --- usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 8fa4a3147c3..df4ef6fd637 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.275 2020/02/20 16:31:11 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.276 2020/02/20 16:40:49 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -748,7 +748,10 @@ sub add } elsif ($args =~ m/^(?:subdir|pkgpath)\=(.*?)\s+ftp\=(.*?)\s*$/o) { return OpenBSD::PackingElement::ExtraInfo->add($plist, $1, undef, $2); } elsif ($args eq 'no checksum') { - $plist->{state}->{nochecksum} = 1; + $plist->{state}{nochecksum} = 1; + return; + } elsif ($args eq 'no debug') { + $plist->{state}{nodebug} = 1; return; } else { return $class->SUPER::add($plist, $args); -- cgit v1.2.3-59-g8ed1b