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: Sun, 07 Dec 2014 12:56:53 -0500 Message-ID: References: <20141207132244.A14A7200D1E@loki.jorgenschaefer.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417975052 22011 80.91.229.3 (7 Dec 2014 17:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2014 17:57:32 +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 Sun Dec 07 18:57: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 1Xxg5F-0004oI-2w for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2014 18:57:25 +0100 Original-Received: from localhost ([::1]:58731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxg5E-00055d-P1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2014 12:57:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxg53-00055H-Pj for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 12:57:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxg4s-0007K1-Kv for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 12:57:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxg4s-0007Jw-Ga for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 12:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xxg4s-0005Rt-88 for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 12:57: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: Sun, 07 Dec 2014 17:57: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.141797501620931 (code B ref 19296); Sun, 07 Dec 2014 17:57:02 +0000 Original-Received: (at 19296) by debbugs.gnu.org; 7 Dec 2014 17:56:56 +0000 Original-Received: from localhost ([127.0.0.1]:56472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xxg4m-0005RU-CN for submit@debbugs.gnu.org; Sun, 07 Dec 2014 12:56:56 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:45013) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xxg4k-0005RN-Fw for 19296@debbugs.gnu.org; Sun, 07 Dec 2014 12:56:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8PAOwQflRMCqTq/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWIwULCw4mEhQYDSSISgnWWQEBAQEGAgEfimCFTUIHhEgFiwGMVQWXVIF4hBkhgTaBQQEBAQ X-IPAS-Result: Aj8PAOwQflRMCqTq/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWIwULCw4mEhQYDSSISgnWWQEBAQEGAgEfimCFTUIHhEgFiwGMVQWXVIF4hBkhgTaBQQEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="99798823" Original-Received: from 76-10-164-234.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.234]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Dec 2014 12:56:53 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 737E29894; Sun, 7 Dec 2014 12:56:53 -0500 (EST) In-Reply-To: <20141207132244.A14A7200D1E@loki.jorgenschaefer.de> (Jorgen Schaefer's message of "Sun, 7 Dec 2014 13:31:50 +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:96949 Archived-At: > When installing packages by name, only packages from archives with > the highest priority are considered, before versions are compared. What can this be used for (other than the MELPA case, obviously)? > This solves the "MELPA problem", where MELPA assigns date-based > version numbers to packages which override all other archives. > Giving MELPA a lower priority means packages are installed from > MELPA only when the package is not available from other archives. I think the better way to solve the problem of versioning the "bleeding edge package" would be to take the base version and tuck the date to it (instead of only using the date). I.e. file names like foo-mode-1.3.0.20141023.tar.gz where "1.3" is the version of the last release. Of course that requires a change on MELPA side and I have no idea how easy/feasible that would be. And I'm not completely sure it would really be the best option either. But maybe an idea along the same lines would be to treat revision numbers of the form YYYYMMDD (or similar) as being a "bleeding edge" release and to translate them to, "0.0.YYYYMMDD". This would have a similar effect to setting MELPA's priority lower. > This can be overridden manually by the user. An important issue is what happens after the user did such an override. In my above suggestion, the behavior would kind of suck since package-list would then constantly recommend "upgrading" to the official release (since 1.3 is "more uptodate" than "0.0.YYYYMMDD"). Stefan