Skip to content

Commit

Permalink
build-recipe-livebuild: create images hashsums
Browse files Browse the repository at this point in the history
Following the model set by the kiwi recipe, create sha256 hashsum
files for each Debian images built by this recipe.
  • Loading branch information
bluca committed Mar 14, 2018
1 parent 9b94edd commit 82c25cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build-recipe-livebuild
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,18 @@ recipe_build_livebuild() {
cleanup_and_exit 1 "No live-build result found"
fi

# move created products (and their metadata files) to destination
# move created products (and their metadata files) to destination and
# create sha256 hashsums
local buildnum="${RELEASE:+-Build${RELEASE}}"
for prefix in $(echo -e ${build_results} | sort | uniq) ; do
for f in ${prefix}.* ; do
mv ${f} \
$BUILD_ROOT/$TOPDIR/OTHER/${prefix##*/}${buildnum}${f#${prefix}}
# change directory to avoid having full path in hashsum file
pushd $BUILD_ROOT/$TOPDIR/OTHER >/dev/null
/usr/bin/sha256sum "${prefix##*/}${buildnum}${f#${prefix}}" > \
"${prefix##*/}${buildnum}${f#${prefix}}".sha256
popd >/dev/null
BUILD_SUCCEEDED=true
done
done
Expand Down

0 comments on commit 82c25cc

Please sign in to comment.