From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.bugs Subject: bug#19296: [PATCH] Package archives now have priorities. Date: Mon, 8 Dec 2014 11:58:45 +0100 Message-ID: <20141208115845.1adaa261@forcix> References: <20141207132244.A14A7200D1E@loki.jorgenschaefer.de> <20141207192105.48c4c41b@forcix> <20141207210038.384c7e84@forcix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1418036363 7282 80.91.229.3 (8 Dec 2014 10:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 10:59:23 +0000 (UTC) Cc: 19296@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 11:59:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xxw28-0008Tz-6y for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 11:59:16 +0100 Original-Received: from localhost ([::1]:33461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxw27-0002kq-SW for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 05:59:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxw1z-0002ka-S4 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 05:59:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxw1t-0000vZ-VA for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 05:59:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxw1t-0000vR-R0 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 05:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xxw1t-0000L5-MY for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 05:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jorgen Schaefer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Dec 2014 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19296-submit@debbugs.gnu.org id=B19296.14180363311287 (code B ref 19296); Mon, 08 Dec 2014 10:59:01 +0000 Original-Received: (at 19296) by debbugs.gnu.org; 8 Dec 2014 10:58:51 +0000 Original-Received: from localhost ([127.0.0.1]:57054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xxw1j-0000Kh-1g for submit@debbugs.gnu.org; Mon, 08 Dec 2014 05:58:51 -0500 Original-Received: from loki.jorgenschaefer.de ([87.230.15.51]:50093) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xxw1g-0000KW-ON for 19296@debbugs.gnu.org; Mon, 08 Dec 2014 05:58:49 -0500 Original-Received: by loki.jorgenschaefer.de (Postfix, from userid 998) id 97B1B200D30; Mon, 8 Dec 2014 11:58:47 +0100 (CET) Original-Received: from forcix (port-9803.pppoe.wtnet.de [84.46.38.113]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id A6A6B200D2D; Mon, 8 Dec 2014 11:58:46 +0100 (CET) In-Reply-To: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; i586-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96987 Archived-At: On Sun, 07 Dec 2014 21:48:48 -0500 Stefan Monnier wrote: > > Actually, it should not suggest an upgrade in this case, because the > > currently installed version is higher than the highest available one > > (package-menu--find-upgrades). > > So we're back with the same problem as we currently have: > if you've installed MELPA's 20120425 and the package gets into GNU > ELPA with version 1.4, you'll keep using the older version. What kind of behavior do we want, then? :-) The problem I am trying to solve is: When I install a package by name using M-x package-install foo, I want to install the highest version of "foo" from any repository but MELPA if it is available, and if not, the highest version of "foo" from MELPA. When I installed a package from another repository than MELPA, and I ask package.el to upgrade all packages, I do not want to get an upgrade suggestion to MELPA. The problem you now mention is: What should happen if I installed a package from MELPA and it is now available from another repository? I don't think there is a good solution for that. We could come up with an idea such as "if, at the time this repository was chosen, the package was not available from another repository, but now it is, it should ...", but that seems rather arcane and requires us to store a lot more information than we currently do. Right now, the upgrades should simply stick to MELPA. Once MELPA, always MELPA. I think this is, while maybe not the best possible option, an acceptable one. Considering the two problems I described above are solved, and the default behavior is not affected at all, I think this patch is a strict improvement over the current situation. Regards, Jorgen