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, 15 Dec 2014 09:36:10 +0100 Message-ID: <548E9D7A.5090802@forcix.cx> References: <20141207132244.A14A7200D1E@loki.jorgenschaefer.de> <20141207192105.48c4c41b@forcix> <20141207210038.384c7e84@forcix> <20141208115845.1adaa261@forcix> <20141208194913.10cf0340@forcix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1418632652 27903 80.91.229.3 (15 Dec 2014 08:37:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2014 08:37:32 +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 15 09:37:25 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 1Y0R9e-0008V4-Lm for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Dec 2014 09:37:22 +0100 Original-Received: from localhost ([::1]:38434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0R9e-000219-47 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Dec 2014 03:37:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0R9S-00020t-TU for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 03:37:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0R9K-0004BQ-JN for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 03:37:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0R9K-0004BM-FI for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 03:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y0R9K-0004eh-21 for bug-gnu-emacs@gnu.org; Mon, 15 Dec 2014 03:37:02 -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, 15 Dec 2014 08:37: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.141863257617840 (code B ref 19296); Mon, 15 Dec 2014 08:37:01 +0000 Original-Received: (at 19296) by debbugs.gnu.org; 15 Dec 2014 08:36:16 +0000 Original-Received: from localhost ([127.0.0.1]:46407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0R8Z-0004df-Hn for submit@debbugs.gnu.org; Mon, 15 Dec 2014 03:36:15 -0500 Original-Received: from loki.jorgenschaefer.de ([87.230.15.51]:58722) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0R8W-0004dV-LK for 19296@debbugs.gnu.org; Mon, 15 Dec 2014 03:36:13 -0500 Original-Received: by loki.jorgenschaefer.de (Postfix, from userid 998) id 43E08200D3E; Mon, 15 Dec 2014 09:36:11 +0100 (CET) Original-Received: from [192.168.178.23] (port-20096.pppoe.wtnet.de [46.59.140.37]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id AFC2E200D3B; Mon, 15 Dec 2014 09:36:10 +0100 (CET) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.2.0 In-Reply-To: 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:97344 Archived-At: On 12/15/2014 05:59 AM, Stefan Monnier wrote: >> What requirements would a patch need to fulfill that you deem it >> acceptable to be applied to the Emacs repository that solves my >> original problem (i.e. only install packages from a given repository if >> the package is not available from other repositories)? > > I'd like a solution that also addresses, at least partly, the other > problem (the one where the MELPA version is superseded by a version > elsewhere such as in GNU ELPA). > > It's not important to automatically upgrade the package from the MELPA > version to the GNU ELPA version, but the user should somehow be warned > at some point that the MELPA version is not the latest any more. So a warning "this package was installed from archive X, but is not available from there anymore" would suffice to fulfill this requirement, correct? Would it be enough if the package list displayed a string like "changed archive" or similar? (This needs a shorter name.) > I think in general it would be desirable to try and remember where > a package came from so that upgrading to a version in another repository > doesn't happen automatically. I can see two ways for this. One, we overwrite the package's -pkg.el file on install time with an expanded version that includes our own infos, e.g. :archive "name" for this (`package-generate-description-file' already has the code to generate this file, and it just needs to be called even if the file already exists). Alternatively, we add an .archive file to the package directory recording the archive this came from. I would tend to lean to overriding the -pkg.el file, but I do not have any big preferences. Which way would you prefer? In either case, we should populate the pkg-desc in `package-alist' from this, which should make it easy to implement the display above. If I add this functionality, will that make the reminder of the patch acceptable to be included in Emacs? Regards, Jorgen