107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
fi
manifestfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
(
cd "${version}" || exit 1
emit_manifest
) > "${manifestfile}"
manifestfile_hash="$(sha1 "${manifestfile}")"
mv "${manifestfile}" "${appfsdir}/sha1/${manifestfile_hash}"
# XXX:TODO: Determine if this is the latest version
|
>
|
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
fi
manifestfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
(
cd "${version}" || exit 1
echo "#manifestmetadata,${package},${os},${cpuArch},${version}"
emit_manifest
) > "${manifestfile}"
manifestfile_hash="$(sha1 "${manifestfile}")"
mv "${manifestfile}" "${appfsdir}/sha1/${manifestfile_hash}"
# XXX:TODO: Determine if this is the latest version
|