summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-07-13 12:32:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-07-13 12:32:16 +0000
commit934a23d02c5ac7db5e71ed8f8f079799e230a01d (patch)
tree35a4db7275ebc9b623c92447c8353bc49c9e64e1 /usr.sbin/pkg_add/OpenBSD/AddDelete.pm
parent2d13a066844b3af39341e4bc0dbc878604accce1 (diff)
create DeleteSet as a specialized version of UpdateSets that print
differently, specialize the states a wee little bit.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/AddDelete.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/AddDelete.pm26
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
index 61b82c0194e..3edba67dee3 100644
--- a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: AddDelete.pm,v 1.47 2011/07/12 10:06:57 espie Exp $
+# $OpenBSD: AddDelete.pm,v 1.48 2011/07/13 12:32:15 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@ -286,30 +286,6 @@ sub status
return $self->{status};
}
-sub updateset
-{
- my $self = shift;
- require OpenBSD::UpdateSet;
-
- return OpenBSD::UpdateSet->new($self);
-}
-
-sub updateset_with_new
-{
- my ($self, $pkgname) = @_;
-
- return $self->updateset->add_newer(
- OpenBSD::Handle->create_new($pkgname));
-}
-
-sub updateset_from_location
-{
- my ($self, $location) = @_;
-
- return $self->updateset->add_newer(
- OpenBSD::Handle->from_location($location));
-}
-
OpenBSD::Auto::cache(ldconfig,
sub {
my $self = shift;