SPECS: poldek.spec - _sysconfdir unification

Andrzej Krzysztofowicz ankry at green.mif.pg.gda.pl
Thu Nov 25 23:00:48 CET 2004


qboosh wrote:
> diff -u SPECS/poldek.spec:1.188 SPECS/poldek.spec:1.189
> --- SPECS/poldek.spec:1.188	Thu Nov 18 19:16:19 2004
> +++ SPECS/poldek.spec	Thu Nov 25 11:17:15 2004
> @@ -148,8 +148,8 @@
>  rm -rf $RPM_BUILD_ROOT
>  
>  %triggerpostun -- poldek <= 0.18.3-5
> -if grep -q '^promoteepoch.*yes' /etc/poldek.conf ; then
> -	echo -e ',s:^promoteepoch:# promoteepoch:g\n,w' | ed -s /etc/poldek.conf
> +if grep -q '^promoteepoch.*yes' %{_sysconfdir}/poldek.conf ; then
> +	echo -e ',s:^promoteepoch:# promoteepoch:g\n,w' | ed -s %{_sysconfdir}/poldek.conf

I'm not sure this is correct.
If you define %{_sysconfdir} to anything else than /etc it _will_ be obviously
incorrect as poldek <= 0.18.3-5 used %{_sysconfdir} == /etc .

Comments ?

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry at mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Gdansk University of Technology




More information about the pld-devel-en mailing list