summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-27 10:07:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-27 10:07:13 +0000
commitc6568aa88e84c2a5f648d310243bf09ac24d31aa (patch)
tree3682fcf96b3d84107f790794ad953ffab9d5a553 /usr.sbin/pkg_add
parentcc7cbea8be65f2d6460b2ed9371836f4c04e1f64 (diff)
more comment
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/UpdateSet.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
index a258a57a0be..64df690163b 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.87 2022/04/13 21:20:23 espie Exp $
+# $OpenBSD: UpdateSet.pm,v 1.88 2023/05/27 10:07:12 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@ -60,6 +60,10 @@ sub pkgname
package OpenBSD::hint2;
our @ISA = qw(OpenBSD::hint);
+# Code organisation: this is the stuff that's common for actual UpdateSets
+# (used by pkg_add) and DeleteSets, a simpler version used by pkg_delete.
+# Turns out some of that stuff is identical.
+# The really juicy stuff resides in pkg_add/pkg_delete proper.
package OpenBSD::DeleteSet;
use OpenBSD::Error;
@@ -131,6 +135,7 @@ sub has_error
&OpenBSD::Handle::has_error;
}
+# display code that will put together packages with the same version
sub smart_join
{
my $self = shift;