summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-27 10:38:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-27 10:38:13 +0000
commit9665351e89f61f3ad378f1ca23435838e9dfd04a (patch)
tree4c874d76740e8067ea0ac169d4a2ed0ccc172421 /usr.sbin/pkg_add/OpenBSD
parent7805df2b30f8de1d99751bd0e3a1506c3972904c (diff)
depend more stuff off handle.
Introduce UpdateSet, finally, with a main handle.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index 3e1baf7e8fc..07b1f280377 100644
--- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Vstat.pm,v 1.22 2007/05/26 12:22:38 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.23 2007/05/27 10:38:12 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -283,4 +283,15 @@ sub add_older
push(@{$self->{older}}, @handles);
}
+# temporary shortcut
+sub handle
+{
+ my $self = shift;
+ if (defined $self->{newer}) {
+ return $self->{newer}[0];
+ } else {
+ return undef;
+ }
+}
+
1;