Merge pull request #726 from raharper/fix/curtin-git-hash

snapcraft: inject curtin commit has into version
This commit is contained in:
Dimitri John Ledkov 2020-04-21 17:40:18 +01:00 committed by GitHub
commit 5494fb0aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ apps:
parts:
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
source-type: git
source: git://git.launchpad.net/curtin