GNU bug report logs - #69366
30.0.50; package.el reports wrong number of packages that can be upgraded

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Jim Porter <jporterbugs@HIDDEN>; dated Sun, 25 Feb 2024 05:48:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 69366 <at> debbugs.gnu.org:


Received: (at 69366) by debbugs.gnu.org; 29 Mar 2024 04:07:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 29 00:07:39 2024
Received: from localhost ([127.0.0.1]:41391 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rq3Wk-0000Ey-AL
	for submit <at> debbugs.gnu.org; Fri, 29 Mar 2024 00:07:38 -0400
Received: from a48-182.smtp-out.amazonses.com ([54.240.48.182]:48429)
 by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from
 <0100018e875ce152-72ba51be-ea90-4e6e-bcd6-e5f977cc291b-000000@HIDDEN>)
 id 1rpz2V-0007P8-9C
 for 69366 <at> debbugs.gnu.org; Thu, 28 Mar 2024 19:20:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
 s=u6r7w6cca46qm7rqfrulg3c2jilw2t2x; d=corp.mlfs.org; t=1711667995;
 h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id;
 bh=7yDqe9XOQ5N57ZJjio+OgwEK8aUqV4UHa6cyXDAps0M=;
 b=A5bIp9KXPQcyK1IKnRPAdtBb4yFELYl/c7ZzGknlSp65FvlBwBLv3vNw2KUWIjpl
 5/1gMa3nSJSGLwnFm7rkdTYoLfg474N7dWxsKD+xsWRiBIbvoAiq2tAFrkOn12epHu1
 rOVdsIB+X3nTupzuH2LyjRqZISwLjwqygmXeYPSs=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
 s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1711667995;
 h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id:Feedback-ID;
 bh=7yDqe9XOQ5N57ZJjio+OgwEK8aUqV4UHa6cyXDAps0M=;
 b=KOetYNqQG5nAnBmhWfQChCM5iZb5FyNujRKhLwYuRWDqYO2p6cltzZqZt0BQv7Nl
 clvl36erf97XcUsB5cqNbY1kGJVhDSvKRsRkRyX2b5mMLbcBF/Yq1l9txNrKsTOC4bG
 FgMR6mq1DkzSlSPfVjiLFfZU5EEMxR5Y0aGzI6zE=
Subject: Re: bug#69366: 30.0.50; package.el reports wrong number of packages 
 that can be upgraded
From: =?UTF-8?Q?Andy_Rosen?= <ajr@HIDDEN>
To: =?UTF-8?Q?69366=40debbugs=2Egnu=2Eorg?= <69366 <at> debbugs.gnu.org>
Date: Thu, 28 Mar 2024 23:19:54 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
References: <CF2C19A9-3718-4AD9-987D-CFBF33DBD055@HIDDEN>
X-Priority: 3 (Normal)
X-Mailer: Amazon WorkMail
Thread-Index: AQHagWZw+maD0ku8S4K7iRnCPcwetg==
Thread-Topic: bug#69366: 30.0.50; package.el reports wrong number of packages
 that can be upgraded
X-Original-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Wm-Sent-Timestamp: 1711667993
Message-ID: <0100018e875ce152-72ba51be-ea90-4e6e-bcd6-e5f977cc291b-000000@HIDDEN>
Feedback-ID: 1.us-east-1.LF00NED762KFuBsfzrtoqw+Brn/qlF9OYdxWukAhsl8=:AmazonSES
X-SES-Outgoing: 2024.03.28-54.240.48.182
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69366
X-Mailman-Approved-At: Fri, 29 Mar 2024 00:07:26 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

=0D=0AA simple fix would be to change the last line of=0D=0A'package-menu=
--find-upgrades', to return '(delete-dups upgrades)'=0D=0Ainstead of 'upg=
rades=E2=80=99.=0D=0A=0D=0A




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69366; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Feb 2024 05:47:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 25 00:47:39 2024
Received: from localhost ([127.0.0.1]:42545 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1re7MQ-0000ch-RH
	for submit <at> debbugs.gnu.org; Sun, 25 Feb 2024 00:47:39 -0500
Received: from lists.gnu.org ([209.51.188.17]:40748)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1re7MO-0000cY-LF
 for submit <at> debbugs.gnu.org; Sun, 25 Feb 2024 00:47:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jporterbugs@HIDDEN>)
 id 1re7Ly-0007au-UY
 for bug-gnu-emacs@HIDDEN; Sun, 25 Feb 2024 00:47:11 -0500
Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <jporterbugs@HIDDEN>)
 id 1re7Lx-0007fm-9D
 for bug-gnu-emacs@HIDDEN; Sun, 25 Feb 2024 00:47:10 -0500
Received: by mail-pf1-x42e.google.com with SMTP id
 d2e1a72fcca58-6da9c834646so2130365b3a.3
 for <bug-gnu-emacs@HIDDEN>; Sat, 24 Feb 2024 21:47:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1708840028; x=1709444828; darn=gnu.org;
 h=content-transfer-encoding:subject:from:to:content-language
 :mime-version:date:message-id:from:to:cc:subject:date:message-id
 :reply-to; bh=+pkzV/0m4uZnaZ8PAyEw8TmdExameq9lrPacugMCX0A=;
 b=ZWLBPXmEZYaDVK4hPZ9/kAN3ZKI9rsID6wCBNu1N6qH0iass0fKVHkFI3eJZKk24x4
 rTA7VNxnJRsJMPtZuXYRKSJ09Zf09NZvc4gHjTrSqOYsujAVc0/nYj0VIKhqD4HgtvGh
 VD9UicVEVJ+NziVRvcAhulxzMktuI8pPg/6tT+zn8M2rEJNkesyKMolJyA5583WpmKJk
 5wwrX+CtOs397MMKWThoHEx/q5Y72hiKpQGtraj3nBZRKzPGwgZEgegtA/iq+YD3ekJh
 PruYWZaFoc5UlVvVH0iy1EDgwz1fVvCfYeb9pjTljdN0vy3u0UlB9mEgxSP8lfS2i+oh
 fyNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1708840028; x=1709444828;
 h=content-transfer-encoding:subject:from:to:content-language
 :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=+pkzV/0m4uZnaZ8PAyEw8TmdExameq9lrPacugMCX0A=;
 b=di6FYmKYnFmGB++rLprsdTAF+mVBKzOlBkZ3QLgtCOVHhdKK2V/9GerQoUMwQ5ZZMA
 T5hc00s4sxvqd4zUHvRdfzlMGl/8/jsFcToSpquCq7vQa9G7JzQ38QuHlYJrCcf/YgAi
 71uvtAnmgL2W3pitWt3RYdZLSbqCReXyN0lUUKbDlsOFLSSilKrFZfh+qeI+qAFRYd3g
 VhTqkfg3d02+RJFPk6TOnLIFbKWiyOM+0+4h/pD2cUrE3xv2wVJu+tg/SvZyr8Ll3ByU
 WPPfLes4QlC7MBqDCIjZKYiD5g0+llukkFPceujrRVWiTNbe4iBeJKmNDUvZkUz3ZZAX
 6tEQ==
X-Gm-Message-State: AOJu0Yz6o/sllxQDejenssEN/rq1TA4N4V9IMkFFN/uU+xG3jRhCduy7
 yp0cmcPMaCZlZ8BoLQG09iheFxdWO4N6k5xoLhoYccx3xpR5WvhkFBfcrFx7
X-Google-Smtp-Source: AGHT+IE8138rh6dg1qaht7Cfvxx196b9reLWMWqn19N+gFPznTHd4oqwoKQ02uuqg1eNc31b5e7/Kg==
X-Received: by 2002:a05:6a20:6320:b0:1a0:d5f8:d212 with SMTP id
 h32-20020a056a20632000b001a0d5f8d212mr4181303pzf.33.1708840027850; 
 Sat, 24 Feb 2024 21:47:07 -0800 (PST)
Received: from [192.168.1.2] (076-168-148-233.res.spectrum.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 ci7-20020a17090afc8700b0029996fd70e2sm2036531pjb.45.2024.02.24.21.47.07
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 24 Feb 2024 21:47:07 -0800 (PST)
Message-ID: <27ae5e17-5f1b-92ad-0a71-178d4396bd77@HIDDEN>
Date: Sat, 24 Feb 2024 21:47:07 -0800
MIME-Version: 1.0
X-Mozilla-News-Host: news://news.gmane.io:119
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: Jim Porter <jporterbugs@HIDDEN>
Subject: 30.0.50; package.el reports wrong number of packages that can be
 upgraded
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::42e;
 envelope-from=jporterbugs@HIDDEN; helo=mail-pf1-x42e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

To reproduce this issue, you first need to install a built-in package 
from ELPA (Org and Tramp are good examples), and then wait until a new 
version is available. When calling 'list-packages', Emacs will then 
report that there are (say) 2 packages ready to upgrade. If you press 
"U" to mark the upgrades and then "x" to execute, it only upgrades a 
single package.

This happens because a built-in package installed from ELPA is counted 
twice in 'package-menu--find-upgrades': first for the ELPA version, and 
second for the built-in version. This function uses the actual buffer 
contents to compute the result; maybe it would be easier to get right by 
looking at 'package-alist' and 'package--builtins' (though that seems to 
require a bit of finagling too).




Acknowledgement sent to Jim Porter <jporterbugs@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#69366; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 1 Mar 2025 03:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.