Skip to content

Commit

Permalink
abbreviate pkg_version to 10 chars.
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Bhatt <[email protected]>
  • Loading branch information
UtkarshBhatthere committed Jun 6, 2024
1 parent 1dfd81f commit 44f97f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ parts:
pkg_version=$(
dpkg-deb -f \
$CRAFT_PART_SRC/../stage_packages/ceph-common*.deb \
Version | sed -rne 's/([0-9.]+)[-+].*$$/\1/p')
Version | sed -rne 's/([0-9.]+)[-+].*$$/\1/p' | cut -c1-10)
git_version=$(
git -C $CRAFT_PROJECT_DIR describe \
--always \
--dirty \
--abbrev=10)
# changed as the original string was longer than 32chars.
craftctl set version=${pkg_version}+devel
craftctl set version=${pkg_version}+snap${git_version}
stage-packages:
- ceph-common
- ceph-mds
Expand Down

0 comments on commit 44f97f5

Please sign in to comment.