From 65097e66a2f75e0b1acc9112732092b0b3659308 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 12 Nov 2006 16:18:28 +0000 Subject: print stuff to the correct file handle --- usr.sbin/pkg_add/pkg_mklocatedb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_add/pkg_mklocatedb b/usr.sbin/pkg_add/pkg_mklocatedb index 6eb419e55a6..7a9ba5ab79d 100644 --- a/usr.sbin/pkg_add/pkg_mklocatedb +++ b/usr.sbin/pkg_add/pkg_mklocatedb @@ -76,7 +76,7 @@ if ($opt_s || $opt_x) { while (my $e = <$l>) { chomp $e; $e =~ s/^\.//; - print "$set$rev:$e\n"; + print $fh "$set$rev:$e\n"; } } } @@ -89,7 +89,7 @@ if ($opt_s || $opt_x) { while (my $e = <$l>) { chomp $e; $e =~ s/^\.//; - print "$set$rev:$e\n"; + print $fh "$set$rev:$e\n"; } } } @@ -108,7 +108,7 @@ if ($opt_r) { while (my $f = $u->next()) { my $name = $f->{name}; $name =~ s/^\.//; - print "$set:$name\n"; + print $fh "$set:$name\n"; } close $arc; } -- cgit v1.2.3