guix package: Always upgrade packages that have propagated inputs.

* guix/scripts/package.scm (transaction-upgrade-entry): Always upgrade
packages that have propagated inputs.
This commit is contained in:
Ludovic Courtès 2017-06-07 11:15:29 +02:00
parent b3a00885c0
commit 81e3485c0d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -312,7 +312,10 @@ (define (supersede old new)
((=)
(let ((candidate-path (derivation->output-path
(package-derivation (%store) pkg))))
(if (string=? path candidate-path)
;; XXX: When there are propagated inputs, assume we need to
;; upgrade the whole entry.
(if (and (string=? path candidate-path)
(null? (package-propagated-inputs pkg)))
transaction
(manifest-transaction-install-entry
(package->manifest-entry pkg output)