summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-10-10 09:27:31 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-10-10 09:27:31 +0000
commitffc2da5d8b6f017d1005232be57a9cb08ad02031 (patch)
tree48fba0fdafc34bd98f98ce611c4419d6cb1132a6 /usr.sbin
parent13837208b353da1fe2a2a8c8423937b4262ea09d (diff)
have modifiers return self so we can chain them
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/UpdateSet.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
index db4c993c83c..567c5920f9e 100644
--- a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
+++ b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: UpdateSet.pm,v 1.4 2009/04/19 14:58:32 espie Exp $
+# $OpenBSD: UpdateSet.pm,v 1.5 2009/10/10 09:27:30 espie Exp $
#
# Copyright (c) 2007 Marc Espie <espie@openbsd.org>
#
@@ -171,12 +171,14 @@ sub add_newer
{
my ($self, @handles) = @_;
push(@{$self->{newer}}, @handles);
+ return $self;
}
sub add_older
{
my ($self, @handles) = @_;
push(@{$self->{older}}, @handles);
+ return $self;
}
sub newer