diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2014-07-18 16:57:42 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2014-07-18 16:57:42 +0000 |
commit | ca10716045403e8b871c2743efb69551a385cccc (patch) | |
tree | c3908c7a9deaee671330739136254e20dd30fccd /usr.sbin/pkg_add/OpenBSD | |
parent | 8a176aae3b31f68b67ebff36d98475942eb0d0aa (diff) |
fix sorted output
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgInfo.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm index 3a8d84aa662..e874e25b63a 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.32 2014/07/08 16:45:44 zhuk Exp $ +# $OpenBSD: PkgInfo.pm,v 1.33 2014/07/18 16:57:41 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -124,8 +124,8 @@ sub printfile_sorted my @lines = (<$fh>); close $fh; foreach my $line (sort @lines) { - chomp; - $state->say("#1", $_); + chomp $line; + $state->say("#1", $line); } $state->say; } |