From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19296: [PATCH] Package archives now have priorities. Date: Mon, 15 Dec 2014 14:07:32 -0500 Message-ID: References: <20141207132244.A14A7200D1E@loki.jorgenschaefer.de> <20141207192105.48c4c41b@forcix> <20141207210038.384c7e84@forcix> <20141208115845.1adaa261@forcix> <20141208194913.10cf0340@forcix> <548E9D7A.5090802@forcix.cx> <548EF667.6010204@forcix.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418670511 7540 80.91.229.3 (15 Dec 2014 19:08:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2014 19:08:31 +0000 (UTC) Cc: 19296@debbugs.gnu.org To: Jorgen Schaefer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 15 20:08:22 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 1Y0b0H-0003ty-Cr for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Dec 2014 20:08:21 +0100 Original-Received: from localhost ([::1]:41557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0b0G-0001p4-8h for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Dec 2014 14:08:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0b06-0001nI-7H for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 14:08:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0azy-00033R-NA for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 14:08:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0azy-00033N-C1 for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 14:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y0azy-0004cz-2j for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 14:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Dec 2014 19:08:02 +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.141867045917748 (code B ref 19296); Mon, 15 Dec 2014 19:08:02 +0000 Original-Received: (at 19296) by debbugs.gnu.org; 15 Dec 2014 19:07:39 +0000 Original-Received: from localhost ([127.0.0.1]:47169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0azb-0004cC-5S for submit@debbugs.gnu.org; Mon, 15 Dec 2014 14:07:39 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54936) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0azZ-0004c0-V4 for 19296@debbugs.gnu.org; Mon, 15 Dec 2014 14:07:38 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8PAOwQflTO+ILA/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWIwULCw4mEhQYDSSISgnWWQEBAQEBBQEBAQEekG8HhEgFiwGMVQWFV4M4jkWBeIQZIYJ3AQEB X-IPAS-Result: Aj8PAOwQflTO+ILA/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWIwULCw4mEhQYDSSISgnWWQEBAQEBBQEBAQEekG8HhEgFiwGMVQWFV4M4jkWBeIQZIYJ3AQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="102567504" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Dec 2014 14:07:32 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 45C3C660DC; Mon, 15 Dec 2014 14:07:32 -0500 (EST) In-Reply-To: <548EF667.6010204@forcix.cx> (Jorgen Schaefer's message of "Mon, 15 Dec 2014 15:55:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:97366 Archived-At: > The part where M-x package-install RET foo RET will install foo-1.2.3 over > foo-20141205.315 when the latter is only available from a repository > with a lower priority, and where "U" in the package list will not upgrade > foo-1.2.3 to foo-20141205.315 when the latter is only available > from a repository with a lower priority. So there are two part above: - decide which repository to use when M-x package-install is used. - don't switch repository for upgrade. I don't think we need priorities for the second part once we refrain from automatically switching from one repository to another during upgrade. For the first part priorities could still be useful, indeed, tho we should simply prompt the user for those cases where there is a choice between several repositories. So, overall, I'm not sure having repository priorities would be really important, but the patch is fairly small, so I think it's OK. BTW, please simplify the patch by removing package-archive-default-priority (and hard code 0 as the default priority). Stefan