diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-12-20 09:00:00 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-12-20 09:00:00 +0000 |
commit | 9e678f5f3eae28aa071d7319fd54bfcaad37e07c (patch) | |
tree | 1d8bdc45212d7bf24824dc7d26e2172fb544b7f8 /usr.sbin | |
parent | f57324788c5dc9727fe30ee3f9c1ea1cfd9ea201 (diff) |
use state->defines
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index ac7eb566dfb..acb07e80e5a 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCreate.pm,v 1.29 2010/12/05 09:41:55 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.30 2010/12/20 08:59:59 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -970,7 +970,7 @@ sub parse_and_run $plist->avert_duplicates_and_other_checks($state); $state->{stash} = {}; - if ($state->{bad} && $state->{subst}->empty('REGRESSION_TESTING')) { + if ($state->{bad} && !$state->defines('REGRESSION_TESTING')) { return 1; } $state->{bad} = 0; |