summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-04-22 11:38:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-04-22 11:38:55 +0000
commitc89adbd83d661145eab935e733181aecd7213d59 (patch)
tree809bdff3981d968f6827aa5636a2471ba14611e3
parent1454b4e4d177c31aee45600993c5e206e073493c (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_mklocatedb8
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
{