Skip to content

Commit 03fdcb2

Browse files
abbreviate pkg_version to 10 chars.
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
1 parent 9d78fbe commit 03fdcb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snap/snapcraft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ parts:
144144
pkg_version=$(
145145
dpkg-deb -f \
146146
$CRAFT_PART_SRC/../stage_packages/ceph-common*.deb \
147-
Version | sed -rne 's/([0-9.]+)[-+].*$$/\1/p')
147+
Version | sed -rne 's/([0-9.]+)[-+].*$$/\1/p' | cut -c1-10)
148148
git_version=$(
149149
git -C $CRAFT_PROJECT_DIR describe \
150150
--always \
151151
--dirty \
152152
--abbrev=10)
153153
# changed as the original string was longer than 32chars.
154-
craftctl set version=${pkg_version}+devel
154+
craftctl set version=${pkg_version}+snap${git_version}
155155
stage-packages:
156156
- ceph-common
157157
- ceph-mds

0 commit comments

Comments
 (0)