#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.71 2014/07/12 19:58:20 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.72 2014/07/12 22:08:23 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
return $set;
}
- for my $h ($set->newer) {
- $set->check_security($state, $h->plist, $h);
- }
-
if (newer_has_errors($set, $state)) {
return ();
}
+ for my $h ($set->newer) {
+ $set->check_security($state, $h->plist, $h);
+ }
+
if (newer_is_bad_arch($set, $state)) {
return ();
}