summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2018-04-28 16:33:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2018-04-28 16:33:56 +0000
commit548cc685f8ba10b78d69a424a4207fd72d1023dc (patch)
tree43256003cb0ef1c7b37a4e5b0f0a17d1a316009a /usr.sbin
parentd3467d1d7e43676df1eabcc3929c24ea7f031f2e (diff)
okay, this wants BOTH shared directories AND dependency info, haha
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingList.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
index 5a6d342d448..f28a7b6c8c7 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingList.pm,v 1.144 2018/01/01 14:02:37 espie Exp $
+# $OpenBSD: PackingList.pm,v 1.145 2018/04/28 16:33:55 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -208,6 +208,15 @@ sub SharedItemsOnly
}
}
+sub UpdatePlistOnly
+{
+ my ($fh, $cont) = @_;
+ while (<$fh>) {
+ next unless m/^\@(?:cwd|dir|fontdir|ghost|mandir|depend)\b/o || m/^\@(?:sample|extra)\b.*\/$/o || m/^[^\@].*\/$/o;
+ &$cont($_);
+ }
+}
+
sub DirrmOnly
{
&OpenBSD::PackingList::SharedItemsOnly;