summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2020-02-20 16:40:49 +0000
committerespie <espie@openbsd.org>2020-02-20 16:40:49 +0000
commit3852ac0e9c7c0efd9ba6bafa62561fd636fdeab3 (patch)
tree342bead7ae49afbd20e37542741827160678c26a /usr.sbin/pkg_add
parentmake shell "with debug info" by default and add a bit of code to mark (diff)
downloadwireguard-openbsd-3852ac0e9c7c0efd9ba6bafa62561fd636fdeab3.tar.xz
wireguard-openbsd-3852ac0e9c7c0efd9ba6bafa62561fd636fdeab3.zip
forgot to actually put "nodebug" in state
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm7
1 files 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 <espie@openbsd.org>
#
@@ -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);