Hello Behan,
sorry for answering so late, but better late than never... ;)
Thanks a lot for your patch, although i have decided not to include it
in localepurge. The reason to decide against is simply that i'd like
localepurge to stay what it's name suggests. While i think that your
idea is quite interesting i don't think it fits into the scope of
localepurge.
May i suggest something else? The mechanism is aleady there and there is
no need to have to rely on localepurge to take advantage of it. So the
following should perfectly integrate your idea with apt: create a file
named like e.g. /etc/apt/apt.conf.d/99-danglsyms containing following lines:
---------snip------------
// Get rid of dangling symlinks after package installation
DPkg
{
Post-Invoke {"if [ -x /usr/local/sbin/danglsyms ] && [ $(ps w -p "$PPID"
| grep -c symlinks) != 1 ]; then /usr/local/sbin/danglsyms; else exit 0;
fi";};
};
---------snip------------
And then put the code snippet you sent me into a separate executable
shell script called /usr/local/sbin/danglsyms accordingly.
I think this would be a more appropriate solution than bundling
everything and the kitchen sink with localepurge. ;)
Best regards
P. *8^)
Behan Webster wrote:
Package: localepurge
Version: 0.5.9
Severity: wishlist
Tags: patch
As I was using symlinks(1) to clean up /usr/share/man and
/etc/alternatives this morning, I thought how convenient it would be to
have this optionally performed by localepurge at the end.
Here is a patch which runs "symlinks -r -d" on the the appropriate
directories if "SYMLINKS" is specified in the /etc/locale.nopurge file.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]