summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-04 16:50:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-04 16:50:03 +0000
commit9270c0136d71141ecda1a36b26dffb7a7aca3fad (patch)
tree8d13c448ec31006f449347db40c96bf4422b2b71 /usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
parente0ff5e2280257e33650a8629b511c54557374a0d (diff)
cleanup a bit printouts
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/UpdateSet.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/UpdateSet.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
index a8c38d0c13c..6f313723168 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.10 2009/10/19 14:07:26 espie Exp $
+# $OpenBSD: UpdateSet.pm,v 1.11 2009/11/04 16:50:02 espie Exp $
#
# Copyright (c) 2007 Marc Espie <espie@openbsd.org>
#
@@ -194,12 +194,18 @@ sub short_print
my $self = shift;
my @l = ();
if ($self->older > 0) {
- push(@l, join(' ',$self->older_names));
+ push(@l, join('+',$self->older_names));
}
if ($self->newer > 0) {
- push(@l, join(' ', $self->newer_names));
+ push(@l, join('+', $self->newer_names));
}
- return join(' -> ', @l);
+ return join('->', @l);
+}
+
+sub shorter_print
+{
+ my $self = shift;
+ return join('+', $self->newer_names);
}
sub validate_plists