From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#69366: 30.0.50; package.el reports wrong number of packages that can be upgraded Date: Sat, 24 Feb 2024 21:47:07 -0800 Message-ID: <27ae5e17-5f1b-92ad-0a71-178d4396bd77@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23025"; mail-complaints-to="usenet@ciao.gmane.io" To: 69366@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 25 06:47:55 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1re7Mg-0005ue-Qk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Feb 2024 06:47:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1re7MU-0007eJ-OJ; Sun, 25 Feb 2024 00:47:42 -0500 Original-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 ) id 1re7MP-0007dn-Sq for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:47:38 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1re7MP-0007i9-KR for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:47:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1re7Mn-0000du-VO for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Feb 2024 05:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69366 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17088400592404 (code B ref -1); Sun, 25 Feb 2024 05:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Feb 2024 05:47:39 +0000 Original-Received: from localhost ([127.0.0.1]:42545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1re7MQ-0000ch-RH for submit@debbugs.gnu.org; Sun, 25 Feb 2024 00:47:39 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1re7MO-0000cY-LF for submit@debbugs.gnu.org; Sun, 25 Feb 2024 00:47:37 -0500 Original-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 ) id 1re7Ly-0007au-UY for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:47:11 -0500 Original-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 ) id 1re7Lx-0007fm-9D for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:47:10 -0500 Original-Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6da9c834646so2130365b3a.3 for ; 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) Original-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 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Feb 2024 21:47:07 -0800 (PST) X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=jporterbugs@gmail.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280587 Archived-At: 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).