Subject: bug#20817: 25.0.50; Problems with upgrading of packages

From: Artur Malabarba <[email-masked]>
Date: Thu, 18 Jun 2015 18:26:40 +0100

Ok I think I see the problem. From the docstring of add-function:

‘:filter-args’    (lambda (&rest r) (apply OLDFUN (funcall FUNCTION r)))

However, you're using it as if it were this:

‘:filter-args’    (lambda (&rest r) (apply OLDFUN (apply FUNCTION r)))

Try changing your function to be:

(defun pkgi-filter-args (args)
  "How to filter arguments of `package-install' command.
PKG is passed to the command, while DONT-SELECT is always T, so
one can select any packages only by manually adding them to
`package-selected-packages' variable."
  (list (car args) t))