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

Re: New directive for %files section (%exclude)



On Friday, 14 September 2007, at 10:15:05 (-0600),
Dmitry S. Makovey wrote:

> for that there is this:
> 
> %files -f all_but_mysql
> 
> %files mysql
> %{_libexecdir}/mod_sql_mysql.so

There is also %exclude.

> where all_but_mysql could be built using:
> 
> find $RPM_BUILD_ROOT | \
>  grep -v mod_sql_mysql | \
>  sed -e 's#'$RPM_BUILD_ROOT'##g' > all_but_mysql
> 
> it works without overcomplicating things with "exclude".

How on earth do you imagine all that mess is better than one simple
%exclude directive.  The method you suggest is the overcomplication,
not the other way around.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej kainx org>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "I don't know where you came from, but I know you got out climbing a
  ladder made out of those command lines.  You figure computer code
  saved your life, and maybe it did.  But somewhere along the line
  you've got to let people back in.  Otherwise you're just numbers
  and hate."                    -- Mark-Paul Gosselaar, "Hyperion Bay"


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