summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-07-18 16:57:42 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-07-18 16:57:42 +0000
commitca10716045403e8b871c2743efb69551a385cccc (patch)
treec3908c7a9deaee671330739136254e20dd30fccd /usr.sbin/pkg_add/OpenBSD
parent8a176aae3b31f68b67ebff36d98475942eb0d0aa (diff)
fix sorted output
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgInfo.pm6
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;
}