Re: Updates of Apache modules when they are not enabled

2011-09-16 Thread Alexander Hall
On 09/16/11 19:28, Mikolaj Kucharski wrote: On Fri, Sep 16, 2011 at 10:37:41AM +0100, Mikolaj Kucharski wrote: On Fri, Sep 16, 2011 at 08:57:10AM +0200, Alexander Hall wrote: On 09/16/11 00:27, Mikolaj Kucharski wrote: -@exec-update test -f ${MODAPACHE_FINAL}&& cp -fp %D/%F ${MODAPACHE_FINA

Re: Updates of Apache modules when they are not enabled

2011-09-16 Thread Mikolaj Kucharski
On Fri, Sep 16, 2011 at 10:37:41AM +0100, Mikolaj Kucharski wrote: > On Fri, Sep 16, 2011 at 08:57:10AM +0200, Alexander Hall wrote: > > On 09/16/11 00:27, Mikolaj Kucharski wrote: > > > > > -@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F > > > ${MODAPACHE_FINAL} > > > +@exec-update if

Re: Updates of Apache modules when they are not enabled

2011-09-16 Thread Mikolaj Kucharski
On Fri, Sep 16, 2011 at 08:57:10AM +0200, Alexander Hall wrote: > On 09/16/11 00:27, Mikolaj Kucharski wrote: > > > -@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL} > > +@exec-update if test -f ${MODAPACHE_FINAL}; then cp -fp %D/%F > > ${MODAPACHE_FINAL}; fi > > Ports

Re: Updates of Apache modules when they are not enabled

2011-09-16 Thread Alexander Hall
On 09/16/11 00:27, Mikolaj Kucharski wrote: > -@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL} > +@exec-update if test -f ${MODAPACHE_FINAL}; then cp -fp %D/%F > ${MODAPACHE_FINAL}; fi Ports is not my thing, but sh scripting is. I'd suggest using -@exec-update test -

Updates of Apache modules when they are not enabled

2011-09-15 Thread Mikolaj Kucharski
Hi, Back in May[1] I've sent a patch for www/mod_perl which was committed. I reported at the time that updating package with Apache module which was not enabled gives warning about error exit status code from @exec-update line in PLIST. I just realized that all other www/mod_* ports have exactly