diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-04-22 11:38:55 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-04-22 11:38:55 +0000 |
commit | c89adbd83d661145eab935e733181aecd7213d59 (patch) | |
tree | 809bdff3981d968f6827aa5636a2471ba14611e3 | |
parent | 1454b4e4d177c31aee45600993c5e206e073493c (diff) |
write a specialized version that appends a / to directories, to make it
easier to see them in pkg_locate results.
-rw-r--r-- | usr.sbin/pkg_add/pkg_mklocatedb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_mklocatedb b/usr.sbin/pkg_add/pkg_mklocatedb index cd296e32183..81760d32245 100644 --- a/usr.sbin/pkg_add/pkg_mklocatedb +++ b/usr.sbin/pkg_add/pkg_mklocatedb @@ -1,6 +1,6 @@ #! /usr/bin/perl # Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org> -# $OpenBSD: pkg_mklocatedb,v 1.30 2011/09/10 08:46:37 espie Exp $ +# $OpenBSD: pkg_mklocatedb,v 1.31 2012/04/22 11:38:54 espie Exp $ # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -76,7 +76,13 @@ sub print_name print {$state->{out}} $state->{currentheader}, $self->fullname, "\n"; } +package OpenBSD::PackingElement::DirBase; package main; +sub print_name +{ + my ($self, $state) = @_; + print {$state->{out}} $state->{currentheader}, $self->fullname, "/\n"; +} sub tag { |