Enable single-addon package by default

David Rabel David.Rabel at NoreSoft.com
Sun Aug 21 19:09:30 UTC 2016


On 21.08.2016 20:24, James McCoy wrote:
> On Sun, Aug 21, 2016 at 05:07:17PM +0200, David Rabel wrote:
>> while thinking about this preinst-postinst-thing it came to my mind,
>> that it is actually never save to remove a package, when a user
>> installed the addon by "vim-addon-manager install addon". There will
>> always remain the broken symlinks in the user's ~/.vim/ directory.
> 
> Wouldn't "vam remove addon" handle cleaning those up?

As far as I understood, this only works for the user who runs the
command. So if multiple users used "vam install addon", each one would
have to run "vam remove addon".


>  The symlinks
> themselves, although dangling, wouldn't be harmful in and of themselves.
> This is sort of analogous to removing a package vs. purging it.

Ok, then it seems to be harmless. :-)
I am thinking about another case: A package initially consists of one
file. This file is symlinked because some user runs "vam install addon".
Then the package is deleted. So the symlink point to nowhere. A newer
version of this package contains the old file and a new one. This
version is now installed, but no "vam install addon" is run. Then you
have a halfway installed package, because one file is symlinked and the
other is not.
Is something like this possible? Does vim-addon-manager have some
mechanism integrated to check for this? Something like "vam cleanup" or
"vam --all remove addon" would be nice.

>> My personal opinion is, that every vim addon that is packaged for debian
>> should provide a possibility to disable it (which actually seems to be
>> only three lines) and that vim-addon-manager should not provide a
>> possibility to install or remove addons to/from the users ~/.vim/ .
> 
> If addons were enabled by default, I suppose that would make more sense.
> Then the user could simply disable the (system-wide) installed addon.
> However, if an addon had been disabled system-wide, how would you
> suggest a non-admin user to install it?

Actually I haven't thought about this. Maybe my idea was not that good. ;-)


Yours
  David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20160821/d222e4c9/attachment-0001.sig>


More information about the pkg-vim-maintainers mailing list