SPECS: p3scan.spec - fixed triggerun - rel. 2 STBR

Andrzej Augustynowicz andree at pld-linux.org
Mon Mar 21 21:03:33 CET 2005


Dnia poniedziałek, 21 marca 2005 20:58, Elan Ruusamäe napisał:
> On Monday 21 March 2005 20:15, andree wrote:
> > Author: andree                       Date: Mon Mar 21 18:15:31 2005 GMT
> > Module: SPECS                         Tag: HEAD
> > ---- Log message:
> > - fixed triggerun
> > - rel. 2 STBR
> >
> > ---- Files affected:
> > SPECS:
> >    p3scan.spec (1.3 -> 1.4)
>
> [...]
>
> >  %triggerun -- clamav
> > -chown -R root /var/spool/%{name}
> > -chown -R root /var/run/%{name}
> > +if [ $2 = 0 ]; then
> > + chown -R root /var/spool/%{name}
> > + chown -R root /var/run/%{name}
> > +fi
>
> are you sure?
> don't you mean [ $1 = 2 ] instead?
> http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo#Advanced
>
> or i might be wrong... (that link doesn't describe triggers) what the $2
> contains?
http://www.rpm.org/support/RPM-Changes-6.html
[ $2 = 0 ] mean that it should be run when second packet is removed

-- 
Andrzej Augustynowicz
http://ds5.agh.edu.pl




More information about the pld-devel-en mailing list