guix package: Inherit the transformed version number.
authorLudovic Courtès <ludo@gnu.org>
Fri, 27 May 2016 13:17:42 +0000 (15:17 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 27 May 2016 20:05:34 +0000 (22:05 +0200)
commit494dc2fc628b754a9cc86a54c90202b13e0b68c6
tree525fe8c860009a45ee3597727094ea3d4cd424f2
parentb5d08d7c2834610b5243db1795bd4b0724c8ff2a
guix package: Inherit the transformed version number.

Previously, 'guix package -i emacs --with-source=./emacs-42.tar.gz'
would fail to use "42" as the version number in the manifest entry.

Reported by piyo on #guix.

* guix/scripts/package.scm (process-actions)[transform-entry]: Inherit
the version number from the result of TRANSFORM when it's a package.
* tests/guix-package.sh: Test it.
guix/scripts/package.scm
tests/guix-package.sh