[aur-general] Fixing a package with broken config symlinks
me at the-compiler.org
Wed Jun 3 08:23:54 UTC 2015
* Florian Bruhin <me at the-compiler.org> [2015-06-03 09:28:44 +0200]:
> I'd like to correct this situation in an update, but that update will
> of course overwrite /usr/share/webapps/foo with the new version (i.e.
> the new symlink) and nuke the user's current config.
Thanks to agregory's help in IRC I figured out a way which swaps the
files using pre_upgrade() in the install script:
Does this look good? It seems to work fine from what I tested.
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the aur-general