diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-07-03 11:36:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-07-03 11:36:18 +0000 |
commit | c61d37e9d6ca98b286e1f3eeeaab720c35e91996 (patch) | |
tree | a60bf95809b76d514125c1693b1aba12890e86a2 /usr.sbin | |
parent | b0cacb5ab88c7fdafdbc60f12a13e0c5109f8fa1 (diff) |
string comparison (noticed by landry)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgInfo.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm index eb36cd9394e..2a0ec32b00f 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgInfo.pm,v 1.12 2010/06/30 10:51:04 espie Exp $ +# $OpenBSD: PkgInfo.pm,v 1.13 2010/07/03 11:36:17 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -255,7 +255,7 @@ sub find_by_spec } else { my $r = $state->repo->installed->match_locations($s); - return sort {$a->name <=> $b->name} @$r; + return sort {$a->name cmp $b->name} @$r; } } |