diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-02-09 17:18:48 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-02-09 18:18:41 +0100 |
commit | 3bea13bb1f571445185d376f76e1785a5777282e (patch) | |
tree | ff224992451138555296d29c18ff2ac9ede30a56 /guix | |
parent | cde1e967cfc0849c7010eda0bc700dadf222275f (diff) | |
download | gnu-guix-3bea13bb1f571445185d376f76e1785a5777282e.tar gnu-guix-3bea13bb1f571445185d376f76e1785a5777282e.tar.gz |
profiles: Report "pseudo-upgrades" as upgrades, not downgrades.
Reported by Andreas Enge <andreas@enge.fr>
at <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19764#19>.
* guix/profiles.scm (manifest-transaction-effects): Use 'version>=?'
instead of 'version>?'.
* tests/profiles.scm ("manifest-transaction-effects and
pseudo-upgrades"): New test.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/profiles.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm index ac2009154f..a0a259bd4e 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -331,8 +331,8 @@ replace it." (let* ((pattern (manifest-entry->pattern entry)) (previous (manifest-lookup manifest pattern)) (newer? (and previous - (version>? (manifest-entry-version entry) - (manifest-entry-version previous))))) + (version>=? (manifest-entry-version entry) + (manifest-entry-version previous))))) (loop rest (if previous install (cons entry install)) (if (and previous newer?) |