From e903441b102f40504e34888d4afd038ee56f6cd7 Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 18 Jul 2014 16:57:41 +0000 Subject: [PATCH] fix sorted output --- usr.sbin/pkg_add/OpenBSD/PkgInfo.pm | 6 +++--- 1 file 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 # @@ -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; } -- 2.20.1