diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2006-11-12 16:18:28 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2006-11-12 16:18:28 +0000 |
commit | 65097e66a2f75e0b1acc9112732092b0b3659308 (patch) | |
tree | 5a348cc9ed68a87d2ebe46f74f656ff836ccb038 /usr.sbin | |
parent | 05a78c1fc21076875a2a911613c18492f48d2fe2 (diff) |
print stuff to the correct file handle
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_mklocatedb | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |