[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27822: [PATCH] do not auto-remove external packages (fixes #27822)
From: |
Stefan Monnier |
Subject: |
bug#27822: [PATCH] do not auto-remove external packages (fixes #27822) |
Date: |
Tue, 17 Jul 2018 08:40:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
[ Please don't crosspost between bugs and emacs-devel. ]
> package-autoremove however will still attempt to remove them. My feeling
> is that any package which is not directly in 'package-user-dir shouldn't
> be autoremoved.
AFAIK packages installed via dpkg can't be removed (lack of access
rights), so attempting to remove them is not that big of a deal, is it?
Or does it signal an error, prevent local packages from being
auto-removed, or something (I mean, beside the philosophical argument,
does it result in an actual harmful behavior in practice)?
> The following patch checks whether a package has been _directly_ installed
> into `package-user-dir' before marking it eligible for auto-removal.
Looks good to me,
Stefan