diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-04 13:19:40 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-04 13:19:40 +0000 |
commit | d347e99fa15953082ebc6ecd9ab275f230160286 (patch) | |
tree | 1562e32bb52a4dd668c5dbaa5f78b7e726bcfb68 /usr.sbin/pkg_add/OpenBSD/Add.pm | |
parent | 6f138fc6e7d30828b49aac1867054afe01ffd608 (diff) |
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.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 <espie@openbsd.org> # @@ -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)) { |