[aur-general] Fixing a package with broken config symlinks

Florian Bruhin me at the-compiler.org
Wed Jun 3 08:23:54 UTC 2015


Hi,

* 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:

https://github.com/The-Compiler/pkgbuild/commit/fe33593decc2879bdfa6a6996333d4338a5dd3b9

Does this look good? It seems to work fine from what I tested.

Florian

-- 
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
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20150603/f4b51133/attachment.asc>


More information about the aur-general mailing list