mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 11:32:21 +02:00
guix package: Do not misdiagnose upgrades when there are propagated inputs.
Fixes <https://bugs.gnu.org/35872>. Reported by Andy Tai <atai@atai.org>. * guix/profiles.scm (list=?, manifest-entry=?): New procedures. * guix/scripts/package.scm (transaction-upgrade-entry): In the '=' case, use 'manifest-entry=?' to determine whether it's an upgrade. * tests/packages.scm ("transaction-upgrade-entry, zero upgrades, propagated inputs"): New test.
This commit is contained in:
@@ -240,14 +240,9 @@ non-zero relevance score."
|
||||
;; displaying the list of packages to install/upgrade
|
||||
;; upfront. Thus, if lowering NEW triggers a build (due
|
||||
;; to grafts), assume NEW differs from ENTRY.
|
||||
|
||||
;; XXX: When there are propagated inputs, assume we need to
|
||||
;; upgrade the whole entry.
|
||||
(if (and (with-build-handler (const #f)
|
||||
(string=? (manifest-entry-item
|
||||
(lower-manifest-entry* new))
|
||||
(manifest-entry-item entry)))
|
||||
(null? (package-propagated-inputs pkg)))
|
||||
(if (with-build-handler (const #f)
|
||||
(manifest-entry=? (lower-manifest-entry* new)
|
||||
entry))
|
||||
transaction
|
||||
(manifest-transaction-install-entry
|
||||
new transaction)))))))))
|
||||
|
||||
Reference in New Issue
Block a user