But isn't that a bit... weird to use cache to move data from one image to another? I would expect cache to be just a cache even if in reality it is just a regular repository.


On Fri, Jul 25, 2014 at 12:48 AM, Norbert Hartl <norbert@hartl.name> wrote:

Am 24.07.2014 um 23:43 schrieb Stephan Eggermont <stephan@stack.nl>:

> If you use a shared package cache, you should be aware of two potential issues:
> - directories with a large number of files can get slow;

I don't think that this is an issue with todays filesystems. If you want to cleanup a package-cache you could use something like this

----
$ cat bin/clean-package-cache
#!/bin/sh

find /opt/mc/package-cache/ -atime +180d -exec mv {} ~/.Trash \;
������

It moves all files that have not been accessed for half a year into the trash folder (I'm a Mac user). You can have this run automatically if add a file

----
$ cat Library/LaunchAgents/org.selfish.cleanPackageCache.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
�� �� <key>Label</key>
�� �� <string>org.selfish.cleanPackageCache</string>
�� �� <key>ProgramArguments</key>
�� �� <array>
�� �� �� �� <string>/Users/norbert/bin/clean-package-cache</string>
�� �� </array>
�� �� <key>StartInterval</key>
�� �� <integer>86400</integer>
</dict>
</plist>
������

> - Metacello configurations might load different versions of packages than you'd expect

Indeed

Norbert