Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Joshua Root
On 2014-4-17 08:12 , Peter Danecek wrote: > > Now, however I came across a different issue. I realise I need to clean a > cache directory as well. So I added the code below. > > --- ># purge fetch-crl cache >delete [ glob ${prefix}/var/cache/fetch-crl/*.state ] > --- > > The problem her

Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Jeremy Lavergne
> # purge fetch-crl cache > delete [ glob ${prefix}/var/cache/fetch-crl/*.state ] You like want to foreach the glob result (or map if its defined). foreach {filename} [ glob ${prefix}/var/cache/fetch-crl/*.state ] { delete $filename } ___ macpo

Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Peter Danecek
nt way to remove some directory (directories) if >>>> they are empty in a Portfile. >>>> >>>> I would like to use this in the post-deactivate hook. There I remove some >>>> unregistered files, after related registered files are deactivated. >

Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Ryan Schmidt
rtfile. >>> >>> I would like to use this in the post-deactivate hook. There I remove some >>> unregistered files, after related registered files are deactivated. >>> However, afterwords I'd like to check if the dir now is empty and >>> condition

Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Joshua Root
On 2014-4-17 06:34 , Peter Danecek wrote: > > Hi all, > > I am looking for an elegant way to remove some directory (directories) if > they are empty in a Portfile. > > I would like to use this in the post-deactivate hook. There I remove some > unregistered files,

Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Peter Danecek
On 16 Apr 2014, at 22:41, Ryan Schmidt wrote: > On Apr 16, 2014, at 15:34, Peter Danecek wrote: > >> I am looking for an elegant way to remove some directory (directories) if >> they are empty in a Portfile. >> >> I would like to use this in the post-deacti

Re: Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Ryan Schmidt
On Apr 16, 2014, at 15:34, Peter Danecek wrote: > I am looking for an elegant way to remove some directory (directories) if > they are empty in a Portfile. > > I would like to use this in the post-deactivate hook. There I remove some > unregistered files, after related regis

Howto remove empty dirs in post-deactivate?

2014-04-16 Thread Peter Danecek
Hi all, I am looking for an elegant way to remove some directory (directories) if they are empty in a Portfile. I would like to use this in the post-deactivate hook. There I remove some unregistered files, after related registered files are deactivated. However, afterwords I'd like to

Re: post-deactivate

2010-03-22 Thread nox
Le 22 mars 2010 à 16:15, Joshua Root a écrit : > On 2010-3-23 01:19 , nox wrote: >> Hi, >> >> Is there any progress for a support of post-deactivate hook? >> hs-* ports really need that. > > It works fine in trunk. > > - Josh Nice!

Re: post-deactivate

2010-03-22 Thread Joshua Root
On 2010-3-23 01:19 , nox wrote: > Hi, > > Is there any progress for a support of post-deactivate hook? > hs-* ports really need that. It works fine in trunk. - Josh ___ macports-dev mailing list macports-dev@lists.macosfo

post-deactivate

2010-03-22 Thread nox
Hi, Is there any progress for a support of post-deactivate hook? hs-* ports really need that. Regards, Anthony. ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev