diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-11-19 14:45:33 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-11-19 14:45:33 +0000 |
commit | d901116ab87ff6d102cf9b90361828241f21166e (patch) | |
tree | 83854a807e8f97987ef6609aac3f7c99dbfbede6 /usr.sbin/pkg_add | |
parent | fba2b63f0716ee9758378dd22cabb55dc8589be8 (diff) |
magically complete fragment with `committed' names, solve the issue that
uncommitted ports don't register correct plists...
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 537f9b49699..55ec43830a6 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.42 2005/09/24 19:44:26 espie Exp $ +# $OpenBSD: pkg_create,v 1.43 2005/11/19 14:45:32 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -473,6 +473,9 @@ for my $contentsfile (@contents) { } next GETLINE; } + if (m/^(\@comment\s+\$(?:Open)BSD\$)$/) { + $_ = '@comment $'.'OpenBSD: '.basename($fname).',v$'; + } &$cont(dosubst($_)); } } |