clean only old distfiles?

Daniel J. Luke dluke at geeklair.net
Tue Aug 30 14:47:25 PDT 2011


On Aug 30, 2011, at 4:35 PM, Ryan Schmidt wrote:
> 
> On Aug 30, 2011, at 08:47, Michael Dickens wrote:
>> I've looked through port's help & manpage, and can't figure this
>> out easily: Is there a way to clean just old (not currently in
>> use) distfiles?  Doing "port clean --dist [list]" cleans both old
>> and current, and oftentimes a port just has a revision bump &
>> hence keeping the distfile around is convenient.  But, keeping
>> the old stuff just ends up wasting disk space -- hence, it would
>> be nice to easily be able to remove it.  Ideas? - MLD
> 
> I use this script:
> 
> http://lists.macosforge.org/pipermail/macports-users/2010-June/020560.html
> 
> Actually, an updated version of that script.... I should commit it to the repository or something.

which does something similar, but not exactly what the poster wanted...

I think it would be useful for 'port' to be able to remove all non-current distfiles for installed ports.

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+





More information about the macports-dev mailing list