[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Question on Directory Ownership



On 2009-02-04 at 18:15:09 -0500, "Rick L. Vinyard, Jr."
<rvinyard cs nmsu edu> wrote:

> Wouldn't this cause duplication of files?
> 
> %files Emu
> %defattr(-,root,root,-)
> %{_datadir}/Foo/Animal/Emu
> %{_datadir}/Foo/
> 
> %files Llama
> %defattr(-,root,root,-)
> %{_datadir}/Foo/Animal/Llama
> %{_datadir}/Foo/

Yes, it would, but that's not quite right. The accurate example for the
guideline case would be:

%files Emu
%defattr(-,root,root,-)
%{_datadir}/Foo/Animal/Emu
%dir %{_datadir}/Foo/Animal/

%files Llama
%defattr(-,root,root,-)
%{_datadir}/Foo/Animal/Llama
%dir %{_datadir}/Foo/Animal/

In rpm macro speak, %dir means "own just this directory, and none of its
contents".

~spot


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]