SPECS: kernel.spec (LINUX_2_6)
Andrzej Krzysztofowicz
ankry w green.mif.pg.gda.pl
Wto, 30 Wrz 2003, 10:50:00 CEST
arekm wrote:
> Module name: SPECS (BRANCH: LINUX_2_6)
> Changes by: arekm 03/09/30 10:09:38
>
> Modified files:
> kernel.spec
>
> Log message:
> - post/postun for header package tweaks
>
> Index: kernel.spec
> ===================================================================
> RCS file: /cvsroot/SPECS/kernel.spec,v
> diff -d -u -r1.441.2.105 -r1.441.2.106
> --- kernel.spec 29 Sep 2003 22:11:17 -0000 1.441.2.105
> +++ kernel.spec 30 Sep 2003 08:09:36 -0000 1.441.2.106
> @@ -719,12 +719,15 @@
> fi
>
> %post headers
> +rm -f /usr/src/linux
Sugerowalbym dodanie " || : "
na koncu.
Ktos mogl to wczesniej usunac, mogl zmienic na katalog (w ktorym sa pliki),
a nie byloby ladnie gdyby %post sie sypnal z tego powodu.
> ln -snf linux-%{version} /usr/src/linux
>
> %postun headers
> if [ -L %{_prefix}/src/linux ]; then
> if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
> - rm -f %{_prefix}/src/linux
> + if [ "$1" = "0" ]; then
> + rm -f %{_prefix}/src/linux
... i tu tez.
> + fi
> fi
> fi
--
=======================================================================
Andrzej M. Krzysztofowicz ankry w mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
Więcej informacji o liście dyskusyjnej pld-devel-pl