summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_add
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg_add9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index fcd933ad4b7..0b431faedc6 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.385 2009/11/16 12:53:27 espie Exp $
+# $OpenBSD: pkg_add,v 1.386 2009/11/16 14:47:05 espie Exp $
#
# Copyright (c) 2003-2009 Marc Espie <espie@openbsd.org>
#
@@ -665,8 +665,11 @@ sub process_parameters
$state->progress->set_header("Looking for packages");
for my $_ (@ARGV) {
my $set = OpenBSD::UpdateSet->new->add_hints($_);
- if ($state->updater->process_hint($set, $_, $state)) {
- push(@todo2, $set);
+ for my $hint ($set->hints) {
+ if ($state->updater->process_hint($set,
+ $hint, $state)) {
+ push(@todo2, $set);
+ }
}
}
# 2/ update existing stuff