live-build/functions: Update snap seed.yaml format to comply with yaml spec

ubuntu/cosmic
Robert C Jennings 7 years ago
parent 829716a6d7
commit 936c3dbc79

@ -386,13 +386,14 @@ _snap_preseed() {
# Add the snap to the seed.yaml
! [ -e $seed_yaml ] && echo "snaps:" > $seed_yaml
cat <<EOF >> $seed_yaml
- name: ${SNAP_NAME}
channel: ${CHANNEL}
-
name: ${SNAP_NAME}
channel: ${CHANNEL}
EOF
case ${SNAP} in */classic) echo " classic: true" >> $seed_yaml;; esac
case ${SNAP} in */classic) echo " classic: true" >> $seed_yaml;; esac
echo -n " file: " >> $seed_yaml
echo -n " file: " >> $seed_yaml
(cd $snaps_dir; ls -1 ${SNAP_NAME}_*.snap) >> $seed_yaml
}

Loading…
Cancel
Save