diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-27 12:39:54 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-27 12:39:54 +0000 |
commit | c549ac9aecfde5d2693c71268ad1c25aa5af0418 (patch) | |
tree | bc706455f485b0992c787fef2c4063f24d684ffc /usr.sbin/pkg_add/OpenBSD | |
parent | a6643d7fc4c89fedb5766db6b63ee5dff08803ef (diff) |
sort
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/UpdateSet.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm index 64bb3782344..5464010c88d 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.40 2009/12/19 14:21:14 espie Exp $ +# $OpenBSD: UpdateSet.pm,v 1.41 2009/12/27 12:39:53 espie Exp $ # # Copyright (c) 2007-2009 Marc Espie <espie@openbsd.org> # @@ -200,15 +200,15 @@ sub print my $self = shift; my $result = ""; if ($self->kept > 0) { - $result = "[".join('+', $self->kept_names)."]"; + $result = "[".join('+', sort $self->kept_names)."]"; } if ($self->older > 0) { - $result .= join('+',$self->older_names)."->"; + $result .= join('+',sort $self->older_names)."->"; } if ($self->newer > 0) { - $result .= join('+', $self->newer_names); + $result .= join('+', sort $self->newer_names); } elsif ($self->hints > 0) { - $result .= join('+', $self->hint_names); + $result .= join('+', sort $self->hint_names); } return $result; } @@ -216,7 +216,7 @@ sub print sub short_print { my $self = shift; - return join('+', $self->newer_names); + return join('+', sort $self->newer_names); } sub validate_plists |