summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-07-03 11:36:18 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-07-03 11:36:18 +0000
commitc61d37e9d6ca98b286e1f3eeeaab720c35e91996 (patch)
treea60bf95809b76d514125c1693b1aba12890e86a2 /usr.sbin
parentb0cacb5ab88c7fdafdbc60f12a13e0c5109f8fa1 (diff)
string comparison (noticed by landry)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgInfo.pm4
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;
}
}