Re: Files listed twice question
Valery Reznic <[email protected]> Wed, 24 Sep 2008 11:41:20 -0700 (PDT)
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Message-ID | <[email protected]> |
--- On Wed, 9/24/08, Adri=E1n M=E1rques <[email protected]> wrote: > From: Adri=E1n M=E1rques <[email protected]> > Subject: Files listed twice question > To: [email protected] > Date: Wednesday, September 24, 2008, 9:28 PM > Hi there, >=20 > I'm an absolute newbie trying to package an application > with RPM for the=20 > first time and would like to mark some files as config > files. > The top directory of this aplication has several files and > directories,=20 > only two of which hold config files. Thus, I'm doing > something like this=20 > in my spec file: >=20 > %files > /usr/local/myAppTopDir/ > %config /usr/local/myAppTopDir/configDir1/* > %config /usr/local/myAppTopDir/configDir2/* >=20 > Obviously, this generates several 'file listed > twice' warnings. However,=20 > I queried the generated rpm and didn't find anything > wrong with it. All=20 > config files where included and correctly marked as config > files. >=20 > So my questions are: can I safely ignore these warnings or > listing files=20 > twice like I have causes a problem I'm not seeing now? > is there a better=20 > way to do what I want? >=20 > I have been looking through the list archives so I know > many of you=20 > would advice me to explicitly list all files. I know this > would take=20 > care of this particular problem, but I don't want to do > that unless I=20 > really have to, since I find globbing significantly more > practical in=20 > this case. It's strange that it's only warning at least before it was error. I personally prefer am list file explicit. It'sallows cross-check between= installation files into build-root and filelist. If you haven't too much files I suggest explicitly list them. If you have= too much you can use find to generate filelist on the fly. Valery >=20 > I thank you already for taking the time to read this. >=20 > Regards. >=20 > Adri=E1n. >=20 > _______________________________________________ > Rpm-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rpm-list =20