tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: OWN_DIRS doesn't protect directories as advertised



On 5/17/2012 18:38, John Marino wrote:
On 5/17/2012 18:33, Joerg Sonnenberger wrote:
On Thu, May 17, 2012 at 04:22:40PM +0200, John Marino wrote:

To revisit an old topic, I'd like to start fixing packages with the
possibility of missing directories.

An example (assuming php5 isn't already installed):
1) install lang/php5
2) install databases/php-sqlite
3) uninstall databases/php-sqlite
4) Notice that lib/php/20040412 directory is missing. This
directory is the content of lang/php5's OWN_DIRS variable.

Can we put a dummy file such as ".keep" in directories like these to
prevent them from getting removed by pkgsrc's garbage collector?
Maybe it's not elegant, but it will work.

As I said, use @pkgdir in lang/php5. That will work reliable to keep the
directory around.

Joerg


Okay, I'll test that.

Thank Joerg, worked like a charm.
John


Home | Main Index | Thread Index | Old Index