RPM Community Forums

Mailing List Message of <rpm-users>

Re: Does %files support -foo ?

From: Marc MERLIN <marc_rpm@merlins.org>
Date: Fri 05 Nov 2010 - 23:39:45 CET
Message-ID: <20101105223945.GB12330@merlins.org>
On Fri, Nov 05, 2010 at 06:23:08PM -0400, Jeff Johnson wrote:
> (replied privately already, duped here too)

Yeah, I think there may be a delay due to greylisting or something.

> There is a %exclude option that does "everything but this ..." filtering.
> 
> Caveat:
>    %exclude has some minor issues in various versions of RPM.
 
I tried it, it worked for

%files
/*
%exclude /etc/init.d

but I can't re-add:
/etc/init.d/file

It was worth a shot.

> In my experience, its just as simple to switch to a manifest using
> 	%files -f manifest
> 
> Generate the manifest at end of %install, and filter paths however you
> wish with sed/grep/cut/awk/whatever.

Yep, seems like the way to go.

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  
Received on Fri Nov 5 23:40:04 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.