CVS commit: pkgsrc/pkgtools/pkg_install/files/add

Module Name: pkgsrc
Committed By: jperkin
Date: Wed Aug 21 11:46:02 UTC 2013
Modified Files:
pkgsrc/pkgtools/pkg_install/files/add: perform.c
Log Message:
Remove files inside pkgdb directory before trying to remove the directory
itself. Copied from similar code in pkg_delete.
This fixes the issue when an +INSTALL script fails but the pkgdb directory
couldn't be removed, leading to an inconsistent state.
To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 pkgsrc/pkgtools/pkg_install/files/add/perform.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.