From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#16762: Installed packages are not considered part of the archive contents Date: Fri, 21 Mar 2014 08:47:25 +0200 Message-ID: <87lhw4nj42.fsf@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395384492 14089 80.91.229.3 (21 Mar 2014 06:48:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2014 06:48:12 +0000 (UTC) Cc: 16762@debbugs.gnu.org To: Johan Andersson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 07:48:21 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 1WQtFb-0005HG-9K for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Mar 2014 07:48:19 +0100 Original-Received: from localhost ([::1]:50936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQtFa-0004KK-I2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Mar 2014 02:48:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQtFQ-0004K3-Kw for bug-gnu-emacs@gnu.org; Fri, 21 Mar 2014 02:48:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQtFK-0004o4-Q9 for bug-gnu-emacs@gnu.org; Fri, 21 Mar 2014 02:48:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQtFK-0004nJ-MM for bug-gnu-emacs@gnu.org; Fri, 21 Mar 2014 02:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQtFK-0004VN-4Z for bug-gnu-emacs@gnu.org; Fri, 21 Mar 2014 02:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Mar 2014 06:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139538445717276 (code B ref 16762); Fri, 21 Mar 2014 06:48:02 +0000 Original-Received: (at 16762) by debbugs.gnu.org; 21 Mar 2014 06:47:37 +0000 Original-Received: from localhost ([127.0.0.1]:42852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQtEu-0004UZ-9S for submit@debbugs.gnu.org; Fri, 21 Mar 2014 02:47:36 -0400 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:59171) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQtEq-0004UO-9Z for 16762@debbugs.gnu.org; Fri, 21 Mar 2014 02:47:33 -0400 Original-Received: by mail-ee0-f41.google.com with SMTP id t10so1447225eei.28 for <16762@debbugs.gnu.org>; Thu, 20 Mar 2014 23:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=1/Mbt7ZVXFl9IlV43zY6P0QMS7G7kxlQywUS/K5qpp8=; b=PLqNOaKcMkd5dHBvPhQ9Zz/b3VfykTFDziqv3qkj3QrYDEwnrjh6WN0QiMCwUjMPDv zRbtfg5jMQdN0lLV9Z84UgvZfhvqijfOTVYqLTRLfsyvUTZ9zAxgbaGDmPacze2nR4p2 VNbpZGesHeXbUSaJvQfr0lDQwPRuEwkUg/h6zGT9uC4gv1wzz9Stkvt9MWB1fL7mo1JM NYnbd/3XarFSwtKfhZBiBGQbGuRX2VWpAEj7WaEzNPduvdgQqGWKkN8lZ0f3/gprYheY Z/+9fH+JoKkrmR7nIFQkTklQ/2Bw/2N54evNPhF2Wr3ej/+GtA7Ci/vOvmqNTLHDAeuB GLZw== X-Received: by 10.15.45.130 with SMTP id b2mr45892313eew.28.1395384451406; Thu, 20 Mar 2014 23:47:31 -0700 (PDT) Original-Received: from axl (93-121-245.netrun.cytanet.com.cy. [93.109.121.245]) by mx.google.com with ESMTPSA id o7sm9512433eew.25.2014.03.20.23.47.29 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 23:47:30 -0700 (PDT) In-Reply-To: (Johan Andersson's message of "Sat, 15 Feb 2014 17:06:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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:87080 Archived-At: Johan Andersson writes: > In snapshot, if a package is installed with the most recent version, it is > not added to the variable package-archive-contents. I don't know the reason > for this, but I don't think it makes sense. Even if the package is > installed, it is still part of the package archives in my opinion. This was changed in revision 113000, not exactly sure why. Stefan, could you explain that part of the change? Seems like it could've fixed installed packages wrongly showing up in the `list-packages' list, but I don't remember having that problem. Was it made to improve the behavior of `package-install'? > You have to realize that other packages (such as https://github.com/cask/epl) > depend on the internals of package.el because it does not have an API (for > some reason). Considering Epl is a dependency to Cask and a lot of people > are using Cask, this change will affect many users. If you're building a house on shaky foundation, and don't work on the foundation, having to fix the house from time to time seems to be in the job description. (Unlike many other packages, there are no developer(s) specifically maintaining package.el, looking after its API, etc). > With this change, how can I know if a package is available, no matter if > it's installed or not? Look in both `package-archive-contents' and `package-alist', probably. Although that depends on your definition of "available".