Merge pull request #726 from raharper/fix/curtin-git-hash
snapcraft: inject curtin commit has into version
This commit is contained in:
commit
5494fb0aba
|
@ -25,6 +25,10 @@ apps:
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
curtin:
|
curtin:
|
||||||
|
override-pull: |
|
||||||
|
snapcraftctl pull
|
||||||
|
PACKAGED_VERSION="$(git describe --long --abbrev=9 --match=[0-9][0-9]*)"
|
||||||
|
sed -e "s,@@PACKAGED_VERSION@@,$PACKAGED_VERSION,g" -i curtin/version.py
|
||||||
plugin: python
|
plugin: python
|
||||||
source-type: git
|
source-type: git
|
||||||
source: git://git.launchpad.net/curtin
|
source: git://git.launchpad.net/curtin
|
||||||
|
|
Loading…
Reference in New Issue