guix package: Build up the transaction incrementally.
authorLudovic Courtès <ludo@gnu.org>
Tue, 6 Sep 2016 20:28:12 +0000 (22:28 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 6 Sep 2016 21:22:10 +0000 (23:22 +0200)
commit5239f3d90841de767c86d0f3a7975b8d799d583d
tree0b785fe2d906e867bf25002d82ce2d0f89c24504
parentc8c25704aeb2e5fa4feb6a86235f9565738eea99
guix package: Build up the transaction incrementally.

* guix/scripts/package.scm (upgraded-manifest-entry): Rename to...
(transaction-upgrade-entry): ... this.  Add 'transaction' parameter and
return a transaction.
(options->installable): Likewise.
[to-upgrade]: Rename to...
[upgraded]: ... this, and change to be a transaction.  Return a
transaction.
(options->removable): Likewise.
(process-actions): Adjust accordingly.
* tests/packages.scm ("transaction-upgrade-entry, zero upgrades")
("transaction-upgrade-entry, one upgrade"): New tests.
guix/scripts/package.scm
tests/packages.scm