From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Johan Andersson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Feb 2014 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16762@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139248040518484 (code B ref -1); Sat, 15 Feb 2014 16:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2014 16:06:45 +0000 Received: from localhost ([127.0.0.1]:53636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEhlM-0004o3-KH for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50376) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEhlH-0004nl-CN for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEhlA-00033h-Tb for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEhlA-00033c-Qu for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEhl9-0002li-NT for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 11:06:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEhl8-00032V-Kf for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 11:06:31 -0500 Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:55816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEhl8-00032R-EA for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 11:06:30 -0500 Received: by mail-ob0-f173.google.com with SMTP id vb8so15218735obc.4 for ; Sat, 15 Feb 2014 08:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=2liVs+QpdTrMT9i9G/fUS6leT7FkODdL90w6cp+aU1Y=; b=bb8lAdPkLjFFpfOSXTvyFbWdeEQcPyvc6u1eJDndP5Ovqoy/ChBn216X4TGIyF9+49 JciqJhUwjYx9RpMY1rBANcpbUzk5E9BbHcdaj1fFHo5v2Tb4lJiPFwPyK+4G07kxAVqF QvTNEjMHrSi0G057qV33Xz16vW9DVLXEg+irMTyZ9R0kZQuwSEkimrLM1aWYqODeDbOs r3mY8IPxEhGC/PVaMFe4IL5GkO+fNgH1qYFtBRZSShc1pDsRhYh4gR2XDgILsD7OUgy8 QptWhBTi43Jt0aI3hR6BMhj8qD5NTDy/ETJQ5XKp9PVrq1ZhLVHjEIOHP/m0GGu92MLv B4SQ== X-Received: by 10.60.52.138 with SMTP id t10mr1082886oeo.59.1392480389571; Sat, 15 Feb 2014 08:06:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.197.38 with HTTP; Sat, 15 Feb 2014 08:06:09 -0800 (PST) From: Johan Andersson Date: Sat, 15 Feb 2014 17:06:09 +0100 Message-ID: Content-Type: multipart/alternative; boundary=001a11330470fa29e104f2741ae9 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11330470fa29e104f2741ae9 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have noticed a change of behavior in package.el between version 24.3.1 and current snapshot version. 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. 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. With this change, how can I know if a package is available, no matter if it's installed or not? Thanks! --001a11330470fa29e104f2741ae9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I have noticed a change of behavior= in package.el between version 24.3.1 and current snapshot version.

In snapshot, if a package is installed with the most rece= nt 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 m= y opinion.

You have to realize that other packages (such as https://github.com/cask/epl) depend o= n the internals of package.el because it does not have an API (for some rea= son). Considering Epl is a dependency to Cask and a lot of people are using= Cask, this change will affect many users.

With this change, how can I know if a package is a= vailable, no matter if it's installed or not?

Thanks!
--001a11330470fa29e104f2741ae9-- From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents 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: To: Johan Andersson Cc: Stefan Monnier , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139538445717276 (code B ref 16762); Fri, 21 Mar 2014 06:48:02 +0000 Received: (at 16762) by debbugs.gnu.org; 21 Mar 2014 06:47:37 +0000 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 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 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) 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) From: Dmitry Gutov References: Date: Fri, 21 Mar 2014 08:47:25 +0200 In-Reply-To: (Johan Andersson's message of "Sat, 15 Feb 2014 17:06:09 +0100") Message-ID: <87lhw4nj42.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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". From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Mar 2014 15:35: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: To: Dmitry Gutov Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139541604914827 (code B ref 16762); Fri, 21 Mar 2014 15:35:02 +0000 Received: (at 16762) by debbugs.gnu.org; 21 Mar 2014 15:34:09 +0000 Received: from localhost ([127.0.0.1]:43711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WR1SS-0003qy-FR for submit@debbugs.gnu.org; Fri, 21 Mar 2014 11:34:08 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:45847) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WR1SP-0003qj-HU for 16762@debbugs.gnu.org; Fri, 21 Mar 2014 11:34:06 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E823384DC3; Fri, 21 Mar 2014 11:34:04 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id BC6281E5B74; Fri, 21 Mar 2014 11:33:36 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 9955FB404C; Fri, 21 Mar 2014 11:33:36 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87lhw4nj42.fsf@yandex.ru> Date: Fri, 21 Mar 2014 11:33:36 -0400 In-Reply-To: <87lhw4nj42.fsf@yandex.ru> (Dmitry Gutov's message of "Fri, 21 Mar 2014 08:47:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >> 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? Hmm... can't quite remember, sorry. > 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'? Clearly, the intention of my changes was to move towards a situation where package-archive-contents indeed holds all the packages in the archives. But some didn't quite make it (e.g. the ones that are on hold, IIRC, and maybe the ones that are obsolete). If you can show an actual problem that this causes (from the user's point of view), we can try to fix it. And in trunk feel free to try and change things so that those packages are included in package-archive-contents. Such a change would be welcome, in general (as would be a change that gets rid of the other exceptions such as the packages that are "on-hold"). Stefan From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Mar 2014 23:08: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: To: Stefan Monnier Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139544326516285 (code B ref 16762); Fri, 21 Mar 2014 23:08:02 +0000 Received: (at 16762) by debbugs.gnu.org; 21 Mar 2014 23:07:45 +0000 Received: from localhost ([127.0.0.1]:44005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WR8XR-0004Eb-AE for submit@debbugs.gnu.org; Fri, 21 Mar 2014 19:07:45 -0400 Received: from mail-ee0-f42.google.com ([74.125.83.42]:56051) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WR8XO-0004ES-Us for 16762@debbugs.gnu.org; Fri, 21 Mar 2014 19:07:44 -0400 Received: by mail-ee0-f42.google.com with SMTP id d17so2342725eek.1 for <16762@debbugs.gnu.org>; Fri, 21 Mar 2014 16:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rgyjVo2v14GcvHjq4F51KMxY1TxG+a0K+q0Cic6izeE=; b=r4bC/w9Txf6SFjb/jXwlnsi/5AbEQSroa+m04RDZ/3VNxMlSCBNfGvdrLRQui9bEvW J2GIR8F7fulQDpcwgUPwBMNrUsj4PFcXSsxNKdHYWZam+5bNz0BYIrG4rw45aiQmCMUR lmmFcaNeNNaRxiLNtz74oBZ9hvLNOmKLk6tTefnIB4UvZHYSqsRozP9+c6JetagPKl7X JFr5ltQdDrR0CwSW69pUyjA5iO133b+UsPpiFEK0WWeLkSXToYVKzwOffHTIK3BSMK5U hL9+z8BmYEA/chMSY2WyQbiRhASzWBefMorm2Hw3lm+GxWzEonzu31Jk/BVFzxXORnCv PFmg== X-Received: by 10.14.199.8 with SMTP id w8mr140621een.94.1395443260469; Fri, 21 Mar 2014 16:07:40 -0700 (PDT) Received: from [192.168.10.2] (93-22-183.netrun.cytanet.com.cy. [93.109.22.183]) by mx.google.com with ESMTPSA id 48sm14783973eee.2.2014.03.21.16.07.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 16:07:39 -0700 (PDT) Message-ID: <532CC639.6000309@yandex.ru> Date: Sat, 22 Mar 2014 01:07:37 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 References: <87lhw4nj42.fsf@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 21.03.2014 17:33, Stefan Monnier wrote: > Clearly, the intention of my changes was to move towards a situation > where package-archive-contents indeed holds all the packages in the > archives. AFAICS, the revision in question did the reverse: it made installed packages excluded from package-archive-contents (as long as the installed version is not obsolete). Here's the relevant part: @@ -914,19 +889,25 @@ (entry (cons name pkg-desc)) (existing-package (assq name package-archive-contents)) (pinned-to-archive (assoc name package-pinned-packages))) - (cond ((and pinned-to-archive - ;; If pinned to another archive, skip entirely. - (not (equal (cdr pinned-to-archive) archive))) - nil) - ((not existing-package) - (push entry package-archive-contents)) - ((version-list-< (package-desc-version (cdr existing-package)) - (package-desc-version pkg-desc)) - ;; Replace the entry with this one. - (setq package-archive-contents - (cons entry - (delq existing-package - package-archive-contents))))))) + (cond + ;; Skip entirely if pinned to another archive or if no more recent + ;; than what we already have installed. + ((or (and pinned-to-archive + (not (equal (cdr pinned-to-archive) archive))) + (let ((bi (assq name package--builtin-versions))) + (and bi (version-list-<= version (cdr bi)))) + (let ((ins (cdr (assq name package-alist)))) + (and ins (version-list-<= version (package-desc-version ins))))) + nil) + ((not existing-package) + (push entry package-archive-contents)) + ((version-list-< (package-desc-version (cdr existing-package)) + version) + ;; Replace the entry with this one. + (setq package-archive-contents + (cons entry + (delq existing-package + package-archive-contents))))))) (defun package-download-transaction (package-list) "Download and install all the packages in PACKAGE-LIST. > If you can show an actual problem that this causes (from the user's > point of view), we can try to fix it. Johan? > And in trunk feel free to try and change things so that those packages > are included in package-archive-contents. I think this change, might be more beneficial to apply in 24.4. This way, the packages interfacing with package.el (like Epl, already mentioned here) won't have to deal with the sudden jump in behavior specific only to 24.4, but not versions before or after it. > (as would be a change that gets rid of the other > exceptions such as the packages that are "on-hold"). I agree that it would make sense, and that would be better left for trunk. From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Mar 2014 02:47:01 +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: To: Dmitry Gutov Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.13954563957552 (code B ref 16762); Sat, 22 Mar 2014 02:47:01 +0000 Received: (at 16762) by debbugs.gnu.org; 22 Mar 2014 02:46:35 +0000 Received: from localhost ([127.0.0.1]:44062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRBxC-0001xj-KE for submit@debbugs.gnu.org; Fri, 21 Mar 2014 22:46:35 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:23420) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRBx8-0001xV-O0 for 16762@debbugs.gnu.org; Fri, 21 Mar 2014 22:46:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KKg/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFHO+KKg/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="52939631" Received: from 206-248-162-160.dsl.teksavvy.com (HELO ceviche.home) ([206.248.162.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 Mar 2014 22:46:29 -0400 Received: by ceviche.home (Postfix, from userid 20848) id B7DD6660FE; Fri, 21 Mar 2014 22:46:29 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> Date: Fri, 21 Mar 2014 22:46:29 -0400 In-Reply-To: <532CC639.6000309@yandex.ru> (Dmitry Gutov's message of "Sat, 22 Mar 2014 01:07:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > AFAICS, the revision in question did the reverse: it made installed packages > excluded from package-archive-contents (as long as the installed version is > not obsolete). Here's the relevant part: Indeed. Not sure why I ended up doing it that way, but clearly that was not by accident. >> And in trunk feel free to try and change things so that those packages >> are included in package-archive-contents. > I think this change, might be more beneficial to apply in 24.4. Yes, but as long as we don't know why this was done, it's too risky to change it. If/when we figure out what that was about and come up with a way to fix the problem, we can judge whether that's appropriate for 24.4. Stefan From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Mar 2014 08:17:01 +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: To: Stefan Monnier Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139556260814349 (code B ref 16762); Sun, 23 Mar 2014 08:17:01 +0000 Received: (at 16762) by debbugs.gnu.org; 23 Mar 2014 08:16:48 +0000 Received: from localhost ([127.0.0.1]:45373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRdaJ-0003jK-Fr for submit@debbugs.gnu.org; Sun, 23 Mar 2014 04:16:47 -0400 Received: from mail-ee0-f43.google.com ([74.125.83.43]:55095) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRdaG-0003jB-FU for 16762@debbugs.gnu.org; Sun, 23 Mar 2014 04:16:45 -0400 Received: by mail-ee0-f43.google.com with SMTP id e53so3249240eek.16 for <16762@debbugs.gnu.org>; Sun, 23 Mar 2014 01:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XvUYzxOXXJ0ypSUUhZaDtSuamvzXsbYlixk9oHHT0vo=; b=hQ1KlNRT4hjQN/Nih001/8Vbpd6m9dRnPQEHTS9w52GncmXzxBgu6YQEKx2dWaz11T x2S9VSz5oHGEBcN1w/k+tGbv6csGEcXejhLKI+MpsaITy+umeYXZc/wcxDmSzweDSIyk 4j2uVcHfQsvGqpJTDkh1D/2nxHY62c//+2opHkgoTQQDm0P2MBvyf4eWEVjl/qOB/hvm DO3aiP25g3o+A9wpyrCtrQUYAkv/y5XtK2K26gXsqOp7bK7CDa4Plj+PnfddOeCli0u7 ono0HywWfUqVbiO7ISbtisBk649r536XQlE3xN/YVXOsnJPXXCrjAsCe4aQafXfwFwqe 8dkA== X-Received: by 10.15.81.135 with SMTP id x7mr54606670eey.61.1395562603761; Sun, 23 Mar 2014 01:16:43 -0700 (PDT) Received: from [192.168.10.2] ([93.109.138.177]) by mx.google.com with ESMTPSA id e42sm24406491eev.32.2014.03.23.01.16.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Mar 2014 01:16:42 -0700 (PDT) Message-ID: <532E9868.60207@yandex.ru> Date: Sun, 23 Mar 2014 10:16:40 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 22.03.2014 04:46, Stefan Monnier wrote: > Yes, but as long as we don't know why this was done, it's too risky to > change it. If/when we figure out what that was about and come up with > a way to fix the problem, we can judge whether that's appropriate for > 24.4. From what I can see, except `package-install', all places where `package-archive-contents' is used, either append its contents to `package-alist' elements, or use a predicate calling `package-installed-p'. The following patch seems to offer the same functionality: === modified file 'lisp/emacs-lisp/package.el' --- lisp/emacs-lisp/package.el 2014-03-22 08:43:30 +0000 +++ lisp/emacs-lisp/package.el 2014-03-23 08:03:37 +0000 @@ -1047,14 +1047,11 @@ (existing-packages (assq name package-archive-contents)) (pinned-to-archive (assoc name package-pinned-packages))) (cond - ;; Skip entirely if pinned to another archive or already installed. + ;; Skip entirely if pinned to another archive or built-in. ((or (and pinned-to-archive (not (equal (cdr pinned-to-archive) archive))) (let ((bi (assq name package--builtin-versions))) - (and bi (version-list-= version (cdr bi)))) - (let ((ins (cdr (assq name package-alist)))) - (and ins (version-list-= version - (package-desc-version (car ins)))))) + (and bi (version-list-= version (cdr bi))))) nil) ((not existing-packages) (push (list name pkg-desc) package-archive-contents)) @@ -1090,8 +1087,11 @@ (package-refresh-contents)) (list (intern (completing-read "Install package: " - (mapcar (lambda (elt) (symbol-name (car elt))) - package-archive-contents) + (delq nil + (mapcar (lambda (elt) + (unless (package-installed-p (car elt)) + (symbol-name (car elt)))) + package-archive-contents)) nil t))))) (package-download-transaction (if (package-desc-p pkg) From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 00:57: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: To: Dmitry Gutov Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.13956225658898 (code B ref 16762); Mon, 24 Mar 2014 00:57:02 +0000 Received: (at 16762) by debbugs.gnu.org; 24 Mar 2014 00:56:05 +0000 Received: from localhost ([127.0.0.1]:46454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRtBM-0002JS-NY for submit@debbugs.gnu.org; Sun, 23 Mar 2014 20:56:04 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54151) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRtBK-0002J0-F9 for 16762@debbugs.gnu.org; Sun, 23 Mar 2014 20:56:03 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s2O0twc4016797; Sun, 23 Mar 2014 20:55:59 -0400 Received: by pastel.home (Postfix, from userid 20848) id A5AAF6017C; Sun, 23 Mar 2014 20:55:58 -0400 (EDT) From: Stefan Message-ID: References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> Date: Sun, 23 Mar 2014 20:55:58 -0400 In-Reply-To: <532E9868.60207@yandex.ru> (Dmitry Gutov's message of "Sun, 23 Mar 2014 10:16:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4890=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4890> : inlines <634> : streams <1143601> : uri <1708025> X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) >> Yes, but as long as we don't know why this was done, it's too risky to >> change it. If/when we figure out what that was about and come up with >> a way to fix the problem, we can judge whether that's appropriate for >> 24.4. > From what I can see, except `package-install', all places where > `package-archive-contents' is used, either append its contents to > `package-alist' elements, or use a predicate calling `package-installed-p'. > The following patch seems to offer the same functionality: Does it affect the output of M-x package-list RET? What about the package-menu-mark-upgrades? > (cond > - ;; Skip entirely if pinned to another archive or already installed. > + ;; Skip entirely if pinned to another archive or built-in. > ((or (and pinned-to-archive > (not (equal (cdr pinned-to-archive) archive))) > (let ((bi (assq name package--builtin-versions))) > - (and bi (version-list-= version (cdr bi)))) > - (let ((ins (cdr (assq name package-alist)))) > - (and ins (version-list-= version > - (package-desc-version (car ins)))))) > + (and bi (version-list-= version (cdr bi))))) > nil) If we can keep the already installed packages, couldn't we also keep the already built-in packages? Stefan From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 06:21:01 +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: To: Stefan Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139564205819324 (code B ref 16762); Mon, 24 Mar 2014 06:21:01 +0000 Received: (at 16762) by debbugs.gnu.org; 24 Mar 2014 06:20:58 +0000 Received: from localhost ([127.0.0.1]:46646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRyFm-00051a-3n for submit@debbugs.gnu.org; Mon, 24 Mar 2014 02:20:58 -0400 Received: from mail-ee0-f44.google.com ([74.125.83.44]:35055) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRyFi-00051P-Sp for 16762@debbugs.gnu.org; Mon, 24 Mar 2014 02:20:55 -0400 Received: by mail-ee0-f44.google.com with SMTP id e49so4023315eek.31 for <16762@debbugs.gnu.org>; Sun, 23 Mar 2014 23:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XUof1tuaajSEFvceEPsoYRMveh+oAxfOX0Wc0Y0rFS0=; b=eXe00WOt5jn5SvBDJ3iJ8i4vXfhpGuTeOKVduG9Mr6SX8l9fuh5BvCXN9NRDAeIZeu v5T2foaFklTpuJtUseKab7h3EQq7tCrTtI6cmCbds43oylF0YpSBd+BFRw+0hFmHbCTs KNlsQGZ1Zn/SumMX7PTjnXny2IwbuRYNZRYgZIvnDdu4tsQNT4M/Exg17B+50EDBy2wY mNC4VOGgPtgwYRIvTMg9x8iNyJohP1IRYRSTUe25UfI3nbRGbSddtUA5nh8BpgVydRTq 8IgkjhDHUhipYZBeGuUUU1ThOoAJN9jDj/iIbz6aY4a8oouXY075MHcGba7xN8s31MgO 1odg== X-Received: by 10.15.81.135 with SMTP id x7mr3365445eey.61.1395642052983; Sun, 23 Mar 2014 23:20:52 -0700 (PDT) Received: from [192.168.10.2] ([93.109.138.177]) by mx.google.com with ESMTPSA id a4sm31084553eep.12.2014.03.23.23.20.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Mar 2014 23:20:52 -0700 (PDT) Message-ID: <532FCEC0.4020304@yandex.ru> Date: Mon, 24 Mar 2014 08:20:48 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 24.03.2014 02:55, Stefan wrote: > Does it affect the output of M-x package-list RET? It's identical (checked with diff). > What about the package-menu-mark-upgrades? It works. Don't see any problems. > If we can keep the already installed packages, couldn't we also keep the > already built-in packages? Yes, seems so. I hadn't tried this before because the previous behavior was to omit them (I think), but the patch below seems to work fine WRT the questions above. === modified file 'lisp/emacs-lisp/package.el' --- lisp/emacs-lisp/package.el 2014-03-23 08:35:56 +0000 +++ lisp/emacs-lisp/package.el 2014-03-24 06:11:52 +0000 @@ -1047,14 +1047,9 @@ (existing-packages (assq name package-archive-contents)) (pinned-to-archive (assoc name package-pinned-packages))) (cond - ;; Skip entirely if pinned to another archive or already installed. - ((or (and pinned-to-archive - (not (equal (cdr pinned-to-archive) archive))) - (let ((bi (assq name package--builtin-versions))) - (and bi (version-list-= version (cdr bi)))) - (let ((ins (cdr (assq name package-alist)))) - (and ins (version-list-= version - (package-desc-version (car ins)))))) + ;; Skip entirely if pinned to another archive. + ((and pinned-to-archive + (not (equal (cdr pinned-to-archive) archive))) nil) ((not existing-packages) (push (list name pkg-desc) package-archive-contents)) @@ -1090,8 +1085,11 @@ (package-refresh-contents)) (list (intern (completing-read "Install package: " - (mapcar (lambda (elt) (symbol-name (car elt))) - package-archive-contents) + (delq nil + (mapcar (lambda (elt) + (unless (package-installed-p (car elt)) + (symbol-name (car elt)))) + package-archive-contents)) nil t))))) (package-download-transaction (if (package-desc-p pkg) From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Johan Andersson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 08:12: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: To: Dmitry Gutov Cc: Stefan , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.13956486721429 (code B ref 16762); Mon, 24 Mar 2014 08:12:02 +0000 Received: (at 16762) by debbugs.gnu.org; 24 Mar 2014 08:11:12 +0000 Received: from localhost ([127.0.0.1]:46702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRzyR-0000Mx-1t for submit@debbugs.gnu.org; Mon, 24 Mar 2014 04:11:11 -0400 Received: from mail-oa0-f44.google.com ([209.85.219.44]:58972) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRzyO-0000MW-IS for 16762@debbugs.gnu.org; Mon, 24 Mar 2014 04:11:09 -0400 Received: by mail-oa0-f44.google.com with SMTP id n16so5489567oag.31 for <16762@debbugs.gnu.org>; Mon, 24 Mar 2014 01:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vWNA7LaDDKNXKfkYyvWxSXnwmpaKkyooyukS+Tuzz8M=; b=lGHnxpLNrMlYJ+D/riiZmNVxggufWcvfruImcAcVs1tp/42dPw5ipe831KAh4rADeA mi1pKPMBeAv7R5/v7MI3D2flIZmDhYB1uTVXVkHG2+TqB+DMMxgSWC8bmvnKkG8WWu/T 4ETo8Gch3gsqCXHl+MA/r4Jga3lKm2oh56oxaf3SQ6hcZ9NvVvh3ckHN7pCj2VWC/NiE bliE+joKJIk2hCTPWRz0HYXEdpVjovfeEzFq++NMW6d6/r0uEah6vBtqCua0RNGztDvy ISzqL1ajZ5sP6Iqw/ipZb1L01OHSv8Gj46evM5ZNmePARqGY74ncnwHmB+hRIBKCiuFF xdmA== X-Received: by 10.182.10.5 with SMTP id e5mr25008497obb.28.1395648662927; Mon, 24 Mar 2014 01:11:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.130.17 with HTTP; Mon, 24 Mar 2014 01:10:42 -0700 (PDT) In-Reply-To: <532FCEC0.4020304@yandex.ru> References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> <532FCEC0.4020304@yandex.ru> From: Johan Andersson Date: Mon, 24 Mar 2014 09:10:42 +0100 Message-ID: Content-Type: multipart/alternative; boundary=f46d0447a051c904d204f555c670 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --f46d0447a051c904d204f555c670 Content-Type: text/plain; charset=KOI8-R > Johan? I actually found a way around the issue because I had no time waiting for it to get fixed. But I still think that this should be fixed for the reason I mention that other packages, such as Epl depends on the (non) package API. This specific issue will break for example this function: https://github.com/cask/epl/blob/master/epl.el#L447-L452 On Mon, Mar 24, 2014 at 7:20 AM, Dmitry Gutov wrote: > On 24.03.2014 02:55, Stefan wrote: > > Does it affect the output of M-x package-list RET? >> > > It's identical (checked with diff). > > What about the package-menu-mark-upgrades? >> > > It works. Don't see any problems. > > > If we can keep the already installed packages, couldn't we also keep the >> already built-in packages? >> > > Yes, seems so. I hadn't tried this before because the previous behavior > was to omit them (I think), but the patch below seems to work fine WRT the > questions above. > > > === modified file 'lisp/emacs-lisp/package.el' > --- lisp/emacs-lisp/package.el 2014-03-23 08:35:56 +0000 > +++ lisp/emacs-lisp/package.el 2014-03-24 06:11:52 +0000 > @@ -1047,14 +1047,9 @@ > > (existing-packages (assq name package-archive-contents)) > (pinned-to-archive (assoc name package-pinned-packages))) > (cond > - ;; Skip entirely if pinned to another archive or already installed. > - ((or (and pinned-to-archive > - (not (equal (cdr pinned-to-archive) archive))) > - (let ((bi (assq name package--builtin-versions))) > > - (and bi (version-list-= version (cdr bi)))) > - (let ((ins (cdr (assq name package-alist)))) > - (and ins (version-list-= version > - (package-desc-version (car ins)))))) > + ;; Skip entirely if pinned to another archive. > + ((and pinned-to-archive > + (not (equal (cdr pinned-to-archive) archive))) > > nil) > ((not existing-packages) > (push (list name pkg-desc) package-archive-contents)) > @@ -1090,8 +1085,11 @@ > > (package-refresh-contents)) > (list (intern (completing-read > "Install package: " > - (mapcar (lambda (elt) (symbol-name (car elt))) > - package-archive-contents) > + (delq nil > + (mapcar (lambda (elt) > + (unless (package-installed-p (car > elt)) > + (symbol-name (car elt)))) > + package-archive-contents)) > nil t))))) > (package-download-transaction > (if (package-desc-p pkg) > > > --f46d0447a051c904d204f555c670 Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable
> Johan?

I actually found= a way around the issue because I had no time waiting for it to get fixed.<= /div>

But I still think that this should be fixed for th= e reason I mention that other packages, such as Epl depends on the (non) pa= ckage API. This specific issue will break for example this function: https://gith= ub.com/cask/epl/blob/master/epl.el#L447-L452


On Mon,= Mar 24, 2014 at 7:20 AM, Dmitry Gutov <dgutov@yandex.ru> wro= te:
On 24.03.2014 02:55, Stefa= n wrote:

Does it affect the output of M-x package-list RET?

It's identical (checked with diff).

What about the package-menu-mark-upgrades?

It works. Don't see any problems.


If we can keep the already installed packages, couldn't we also keep th= e
already built-in packages?

Yes, seems so. I hadn't tried this before because the previous behavior= was to omit them (I think), but the patch below seems to work fine WRT the= questions above.


=3D=3D=3D modified file 'lisp/emacs-lisp/package.el'
--- lisp/emacs-lisp/package.el =9A2014-03-23 08:35:56 +0000
+++ lisp/emacs-lisp/package.el =9A2014-03-24 06:11:52 +0000
@@ -1047,14 +1047,9 @@

=9A =9A =9A =9A =9A (existing-packages (assq name package-archive-contents)= )
=9A =9A =9A =9A =9A (pinned-to-archive (assoc name package-pinned-packages)= ))
=9A =9A =9A(cond
- =9A =9A ;; Skip entirely if pinned to another archive or already installe= d.
- =9A =9A ((or (and pinned-to-archive
- =9A =9A =9A =9A =9A =9A =9A (not (equal (cdr pinned-to-archive) archive))= )
- =9A =9A =9A =9A =9A(let ((bi (assq name package--builtin-versions)))

- =9A =9A =9A =9A =9A =9A(and bi (version-list-=3D version (cdr bi))))
- =9A =9A =9A =9A =9A(let ((ins (cdr (assq name package-alist))))
- =9A =9A =9A =9A =9A =9A(and ins (version-list-=3D version
- =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A (= package-desc-version (car ins))))))
+ =9A =9A ;; Skip entirely if pinned to another archive.
+ =9A =9A ((and pinned-to-archive
+ =9A =9A =9A =9A =9A (not (equal (cdr pinned-to-archive) archive)))

=9A =9A =9A =9Anil)
=9A =9A =9A ((not existing-packages)
=9A =9A =9A =9A(push (list name pkg-desc) package-archive-contents))
@@ -1090,8 +1085,11 @@

=9A =9A =9A =9A (package-refresh-contents))
=9A =9A =9A (list (intern (completing-read
=9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A"Install package: " - =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A(mapcar (lambda (elt) (symbol-name= (car elt)))
- =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9Apackage-archive-co= ntents)
+ =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A(delq nil
+ =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A(mapcar (lambda (elt)<= br> + =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A(u= nless (package-installed-p (car elt))
+ =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A = =9A(symbol-name (car elt))))
+ =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9Apackag= e-archive-contents))
=9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9Anil t)))))
=9A =9A(package-download-transaction
=9A =9A (if (package-desc-p pkg)



--f46d0447a051c904d204f555c670-- From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 13:08: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: To: Dmitry Gutov Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.13956664305882 (code B ref 16762); Mon, 24 Mar 2014 13:08:02 +0000 Received: (at 16762) by debbugs.gnu.org; 24 Mar 2014 13:07:10 +0000 Received: from localhost ([127.0.0.1]:46791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS4ar-0001Wo-KA for submit@debbugs.gnu.org; Mon, 24 Mar 2014 09:07:09 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:33148) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS4ao-0001Wd-Py for 16762@debbugs.gnu.org; Mon, 24 Mar 2014 09:07:07 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s2OD75vj022181; Mon, 24 Mar 2014 09:07:05 -0400 Received: by pastel.home (Postfix, from userid 20848) id 56668600A2; Mon, 24 Mar 2014 09:07:05 -0400 (EDT) From: Stefan Message-ID: References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> <532FCEC0.4020304@yandex.ru> Date: Mon, 24 Mar 2014 09:07:05 -0400 In-Reply-To: <532FCEC0.4020304@yandex.ru> (Dmitry Gutov's message of "Mon, 24 Mar 2014 08:20:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4891=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4891> : inlines <634> : streams <1143843> : uri <1708518> X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) > === modified file 'lisp/emacs-lisp/package.el' > --- lisp/emacs-lisp/package.el 2014-03-23 08:35:56 +0000 > +++ lisp/emacs-lisp/package.el 2014-03-24 06:11:52 +0000 > @@ -1047,14 +1047,9 @@ > (existing-packages (assq name package-archive-contents)) > (pinned-to-archive (assoc name package-pinned-packages))) > (cond > - ;; Skip entirely if pinned to another archive or already installed. > - ((or (and pinned-to-archive > - (not (equal (cdr pinned-to-archive) archive))) > - (let ((bi (assq name package--builtin-versions))) > - (and bi (version-list-= version (cdr bi)))) > - (let ((ins (cdr (assq name package-alist)))) > - (and ins (version-list-= version > - (package-desc-version (car ins)))))) > + ;; Skip entirely if pinned to another archive. > + ((and pinned-to-archive > + (not (equal (cdr pinned-to-archive) archive))) > nil) > ((not existing-packages) > (push (list name pkg-desc) package-archive-contents)) > @@ -1090,8 +1085,11 @@ > (package-refresh-contents)) > (list (intern (completing-read > "Install package: " > - (mapcar (lambda (elt) (symbol-name (car elt))) > - package-archive-contents) > + (delq nil > + (mapcar (lambda (elt) > + (unless (package-installed-p (car elt)) > + (symbol-name (car elt)))) > + package-archive-contents)) Doesn't the above package-installed-p mean that we can't complete the name of an already installed package we want to upgrade? Stefan From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 14:33:01 +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: To: Stefan Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139567155815392 (code B ref 16762); Mon, 24 Mar 2014 14:33:01 +0000 Received: (at 16762) by debbugs.gnu.org; 24 Mar 2014 14:32:38 +0000 Received: from localhost ([127.0.0.1]:47732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS5vZ-00040C-MU for submit@debbugs.gnu.org; Mon, 24 Mar 2014 10:32:37 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:60451) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS5vX-000404-H4 for 16762@debbugs.gnu.org; Mon, 24 Mar 2014 10:32:36 -0400 Received: by mail-bk0-f45.google.com with SMTP id na10so515667bkb.4 for <16762@debbugs.gnu.org>; Mon, 24 Mar 2014 07:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=bF8J6M4AuHr5RNAoztjjD4rIAmqvqGc7sJQNKT0XHek=; b=drM49wKdx0HTbk/HtfjC3rK9xEWWSvPybDuBYDpGPATDWRQEId11uZKcsjO7JYO22/ cdvcq9ZsYgE6IKylz2x4C5DzXeC6aPjfQYcGqYh+TtSQErhQ4P2FEgdmU8lMEQkoJvgr i8c2NHjIYoL3YhHk+g7zyM3ZgwaXwuVWFQNbNlt0LnWRRcxhI13sfANVQ7vLqyIfFs8e uuFLsEMsBt8+0LD/AUCdiweUQYYhmOdJ4SSwbz/waeGK8oOzWp2alc3JcavZtv1VfuAo sjmvq3Y/dUhCJ9zFS9O3sDYPjubu7abidmCwz0RQ2j8U4MS6ANkGNKJnh8yQSqOJJaLj nMaA== X-Received: by 10.204.173.75 with SMTP id o11mr1381409bkz.35.1395671554205; Mon, 24 Mar 2014 07:32:34 -0700 (PDT) Received: from [192.168.10.2] ([93.109.138.177]) by mx.google.com with ESMTPSA id m4sm14615520bkj.4.2014.03.24.07.32.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Mar 2014 07:32:33 -0700 (PDT) Message-ID: <533041FD.5070606@yandex.ru> Date: Mon, 24 Mar 2014 16:32:29 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> <532FCEC0.4020304@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 24.03.2014 15:07, Stefan wrote: > Doesn't the above package-installed-p mean that we can't complete the > name of an already installed package we want to upgrade? Before the patch, `package-install' would be a no-op for a currently installed package, even if a new version is available (because when the PKG argument is not a pkg-desc, it's passed to `package-compute-transaction' in the list of requirements without version, and it's immediately satisfied, requiring no package installation). Considering that `package-install' wouldn't remove the currently installed version, I don't think we'd want it to work for upgrades, anyway. From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 18:18: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: To: Dmitry Gutov Cc: Johan Andersson , 16762@debbugs.gnu.org Received: via spool by 16762-submit@debbugs.gnu.org id=B16762.139568503017268 (code B ref 16762); Mon, 24 Mar 2014 18:18:02 +0000 Received: (at 16762) by debbugs.gnu.org; 24 Mar 2014 18:17:10 +0000 Received: from localhost ([127.0.0.1]:47961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS9Qr-0004UN-LC for submit@debbugs.gnu.org; Mon, 24 Mar 2014 14:17:10 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:58838) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS9Qo-0004U3-TT for 16762@debbugs.gnu.org; Mon, 24 Mar 2014 14:17:08 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s2OIH4sm008907; Mon, 24 Mar 2014 14:17:05 -0400 Received: by pastel.home (Postfix, from userid 20848) id B46186012F; Mon, 24 Mar 2014 14:17:04 -0400 (EDT) From: Stefan Message-ID: References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> <532FCEC0.4020304@yandex.ru> <533041FD.5070606@yandex.ru> Date: Mon, 24 Mar 2014 14:17:04 -0400 In-Reply-To: <533041FD.5070606@yandex.ru> (Dmitry Gutov's message of "Mon, 24 Mar 2014 16:32:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4891=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4891> : inlines <639> : streams <1143955> : uri <1708668> X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) >> Doesn't the above package-installed-p mean that we can't complete the >> name of an already installed package we want to upgrade? > Before the patch, `package-install' would be a no-op for a currently > installed package, even if a new version is available (because when the PKG > argument is not a pkg-desc, it's passed to `package-compute-transaction' in > the list of requirements without version, and it's immediately satisfied, > requiring no package installation). > Considering that `package-install' wouldn't remove the currently installed > version, I don't think we'd want it to work for upgrades, anyway. OK. Then let's try it on `emacs-24' and keep our fingers crossed, Stefan From unknown Wed Jun 25 09:09:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Johan Andersson Subject: bug#16762: closed (Re: bug#16762: Installed packages are not considered part of the archive contents) Message-ID: References: <5330B424.3010702@yandex.ru> X-Gnu-PR-Message: they-closed 16762 X-Gnu-PR-Package: emacs Reply-To: 16762@debbugs.gnu.org Date: Mon, 24 Mar 2014 22:40:25 +0000 Content-Type: multipart/mixed; boundary="----------=_1395700825-18912-1" This is a multi-part message in MIME format... ------------=_1395700825-18912-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16762: Installed packages are not considered part of the archive contents which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16762@debbugs.gnu.org. --=20 16762: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16762 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1395700825-18912-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16762-done) by debbugs.gnu.org; 24 Mar 2014 22:39:58 +0000 Received: from localhost ([127.0.0.1]:48143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSDX5-0004rk-O8 for submit@debbugs.gnu.org; Mon, 24 Mar 2014 18:39:54 -0400 Received: from mail-ee0-f42.google.com ([74.125.83.42]:58510) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSDWt-0004p2-DJ for 16762-done@debbugs.gnu.org; Mon, 24 Mar 2014 18:39:44 -0400 Received: by mail-ee0-f42.google.com with SMTP id d17so4965677eek.15 for <16762-done@debbugs.gnu.org>; Mon, 24 Mar 2014 15:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=JrlXDnW2JXkTuJESipMmYNOKRX0Hk51YNRIc6wGgWS0=; b=r6M4Hy9aRlNbRxqoiqBpouHyqYzbSs365RiPOSjlfGqRwv8lglnJIObn+ZeFb254x7 2ODXGGacSb76dYMsWD/vTJwP4n8pbLz7s+20umixVYoFmxiVGLarnnOk2lmqwyvQz5KM iZkQpwWeSJI6GSb52CMS7P0yxh66BfRCsaRrwXtovOjzn23NOKf0uiP2audxIDBCieU2 iTodaNgwz/7B9NFLRS/qNOvURgfrSWscBqm+Y62IU1D4wW7Y8jJihdVTH3U3Sr5ZQfIQ DcudLucaw87fyIDR+vsHLqbvrqBfS1nboXNV1HUYEg3yuO+zohqiUUspdffbN1VNog15 U1yw== X-Received: by 10.15.90.201 with SMTP id q49mr7718467eez.65.1395700775431; Mon, 24 Mar 2014 15:39:35 -0700 (PDT) Received: from [192.168.10.2] ([93.109.138.177]) by mx.google.com with ESMTPSA id o4sm36096351eef.20.2014.03.24.15.39.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Mar 2014 15:39:34 -0700 (PDT) Message-ID: <5330B424.3010702@yandex.ru> Date: Tue, 25 Mar 2014 00:39:32 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Stefan Subject: Re: bug#16762: Installed packages are not considered part of the archive contents References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> <532FCEC0.4020304@yandex.ru> <533041FD.5070606@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16762-done Cc: 16762-done@debbugs.gnu.org, Johan Andersson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 On 24.03.2014 20:17, Stefan wrote: > OK. Then let's try it on `emacs-24' and keep our fingers crossed, Fingers crossed now. emacs-24, r116854. ------------=_1395700825-18912-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Feb 2014 16:06:45 +0000 Received: from localhost ([127.0.0.1]:53636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEhlM-0004o3-KH for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50376) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEhlH-0004nl-CN for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEhlA-00033h-Tb for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEhlA-00033c-Qu for submit@debbugs.gnu.org; Sat, 15 Feb 2014 11:06:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEhl9-0002li-NT for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 11:06:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEhl8-00032V-Kf for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 11:06:31 -0500 Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:55816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEhl8-00032R-EA for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 11:06:30 -0500 Received: by mail-ob0-f173.google.com with SMTP id vb8so15218735obc.4 for ; Sat, 15 Feb 2014 08:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=2liVs+QpdTrMT9i9G/fUS6leT7FkODdL90w6cp+aU1Y=; b=bb8lAdPkLjFFpfOSXTvyFbWdeEQcPyvc6u1eJDndP5Ovqoy/ChBn216X4TGIyF9+49 JciqJhUwjYx9RpMY1rBANcpbUzk5E9BbHcdaj1fFHo5v2Tb4lJiPFwPyK+4G07kxAVqF QvTNEjMHrSi0G057qV33Xz16vW9DVLXEg+irMTyZ9R0kZQuwSEkimrLM1aWYqODeDbOs r3mY8IPxEhGC/PVaMFe4IL5GkO+fNgH1qYFtBRZSShc1pDsRhYh4gR2XDgILsD7OUgy8 QptWhBTi43Jt0aI3hR6BMhj8qD5NTDy/ETJQ5XKp9PVrq1ZhLVHjEIOHP/m0GGu92MLv B4SQ== X-Received: by 10.60.52.138 with SMTP id t10mr1082886oeo.59.1392480389571; Sat, 15 Feb 2014 08:06:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.197.38 with HTTP; Sat, 15 Feb 2014 08:06:09 -0800 (PST) From: Johan Andersson Date: Sat, 15 Feb 2014 17:06:09 +0100 Message-ID: Subject: Installed packages are not considered part of the archive contents To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11330470fa29e104f2741ae9 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11330470fa29e104f2741ae9 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have noticed a change of behavior in package.el between version 24.3.1 and current snapshot version. 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. 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. With this change, how can I know if a package is available, no matter if it's installed or not? Thanks! --001a11330470fa29e104f2741ae9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I have noticed a change of behavior= in package.el between version 24.3.1 and current snapshot version.

In snapshot, if a package is installed with the most rece= nt 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 m= y opinion.

You have to realize that other packages (such as https://github.com/cask/epl) depend o= n the internals of package.el because it does not have an API (for some rea= son). Considering Epl is a dependency to Cask and a lot of people are using= Cask, this change will affect many users.

With this change, how can I know if a package is a= vailable, no matter if it's installed or not?

Thanks!
--001a11330470fa29e104f2741ae9-- ------------=_1395700825-18912-1-- From unknown Wed Jun 25 09:09:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16762: Installed packages are not considered part of the archive contents Resent-From: Johan Andersson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Mar 2014 07:24: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: To: Dmitry Gutov Cc: 16762-done@debbugs.gnu.org, Stefan Received: via spool by 16762-done@debbugs.gnu.org id=D16762.13959913924257 (code D ref 16762); Fri, 28 Mar 2014 07:24:02 +0000 Received: (at 16762-done) by debbugs.gnu.org; 28 Mar 2014 07:23:12 +0000 Received: from localhost ([127.0.0.1]:53555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTR8A-00016Z-0n for submit@debbugs.gnu.org; Fri, 28 Mar 2014 03:23:10 -0400 Received: from mail-ob0-f171.google.com ([209.85.214.171]:61320) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTR87-00016Q-8m for 16762-done@debbugs.gnu.org; Fri, 28 Mar 2014 03:23:07 -0400 Received: by mail-ob0-f171.google.com with SMTP id wn1so5578308obc.30 for <16762-done@debbugs.gnu.org>; Fri, 28 Mar 2014 00:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=cPXrMX86KcmluuSgY2onYg8yw219BsgNOcx+tLYoMac=; b=LpeYAdUQ4i20asIdwv6qGUFfAOP3NbNKxWVEtmALmuiDjvyX4NtQPfIG8vhks35Xb2 ZUGu0Qs44Jz/Lq/dHh+7/jFEhHxFTGIOHjLF11NnB18rOn702FwGKZHpK/AdDWcjOiJI TMmlipO2F3wpUGuMz1Klq5PRUVY8nNqxP3F1ot2LwPrACIPjELNk5d6Z2mPTv8frqYdW 197lmf+mdRgvUSgCBzBKN8ZSRQLF7hiLsQOSEZgVN3jx4oCOUY1FNZUR3kDSbeM2YlrK xgiykAobh7OsFkeZYin3HV4T86Exx97sNzWsugyCO1CUfaNgnWaSc862w/K+ZHSWFkCV o9zw== X-Received: by 10.182.117.73 with SMTP id kc9mr5614100obb.20.1395991386653; Fri, 28 Mar 2014 00:23:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.130.17 with HTTP; Fri, 28 Mar 2014 00:22:46 -0700 (PDT) In-Reply-To: <5330B424.3010702@yandex.ru> References: <87lhw4nj42.fsf@yandex.ru> <532CC639.6000309@yandex.ru> <532E9868.60207@yandex.ru> <532FCEC0.4020304@yandex.ru> <533041FD.5070606@yandex.ru> <5330B424.3010702@yandex.ru> From: Johan Andersson Date: Fri, 28 Mar 2014 08:22:46 +0100 Message-ID: Content-Type: multipart/alternative; boundary=f46d044796f3b60a4f04f5a592fd X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --f46d044796f3b60a4f04f5a592fd Content-Type: text/plain; charset=KOI8-R Thanks for fixing it guys! On Mon, Mar 24, 2014 at 11:39 PM, Dmitry Gutov wrote: > Version: 24.4 > > > On 24.03.2014 20:17, Stefan wrote: > > OK. Then let's try it on `emacs-24' and keep our fingers crossed, >> > > Fingers crossed now. emacs-24, r116854. > > --f46d044796f3b60a4f04f5a592fd Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable
Thanks for fixing it guys!


On Mon, Mar 24, 2014 at 11:39 PM, Dmitr= y Gutov <dgutov@yandex.ru> wrote:
Version: 24.4


On 24.03.2014 20:17, Stefan wrote:

OK. =9AThen let's try it on `emacs-24' and keep our fingers crossed= ,

Fingers crossed now. emacs-24, r116854.


--f46d044796f3b60a4f04f5a592fd--