diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-06-01 10:09:40 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-06-01 10:09:40 +0000 |
commit | e874542359ee262a968f3730eb3c5b7898d98045 (patch) | |
tree | 8dd6f71fdcdb00b3b6b69bc96a7ef3fafef001cc /usr.sbin/pkg_add | |
parent | 605d0684eb86ca8e38ca15f29f96b992ca33bc0a (diff) |
provision for reading only prelink related stuff from a package (maybe
a bit more, we'll trim it as fitting).
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index efcd1edf0b7..2b8d024b839 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.81 2007/12/08 15:54:45 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.82 2008/06/01 10:09:39 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -156,6 +156,17 @@ sub FilesOnly } } +sub PrelinkStuffOnly +{ + my ($fh, $cont) = @_; + local $_; + while (<$fh>) { + next unless m/^\@(?:cwd|bin|lib|name|depend|wantlib)\b/o || + m/^\@comment\s+subdir\=/o; + &$cont($_); + } +} + sub DependOnly { my ($fh, $cont) = @_; |