summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
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;