diff options
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; } |