From d347e99fa15953082ebc6ecd9ab275f230160286 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 4 Jun 2010 13:19:40 +0000 Subject: move code around, so that commands can be used as modules. pkg becomes the start hub, which does nothing except require the correct module. Saner code wrt Add/Delete, and more sharing. --- usr.sbin/pkg_add/OpenBSD/Add.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm') diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index d74c313113d..169f8c42774 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.108 2010/05/10 09:17:55 espie Exp $ +# $OpenBSD: Add.pm,v 1.109 2010/06/04 13:19:39 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -698,7 +698,7 @@ sub prepare_for_addition my @old = $set->older_names; if ($self->spec->match_ref(\@old) > 0) { my $key = "update_".OpenBSD::PackageName::splitstem($pkgname); - return if $state->{defines}->{$key}; + return if $state->defines($key); if ($state->{interactive}) { if ($state->confirm($self->{message}."\n". "Do you want to update now", 0)) { -- cgit v1.2.3