use the new file based approach for the mar creation

Change-Id: Ie025709b76960b1dd850fbb2d1f114f7a413611a
This commit is contained in:
Markus Mohrhard
2017-05-19 03:43:20 +02:00
parent 0272fd6b53
commit 8e4d49340b
+2 -1
View File
@@ -97,6 +97,7 @@ for ((i=0; $i<$num_files; i=$i+1)); do
copy_perm "$targetdir/$f" "$workdir/$f"
targetfiles="$targetfiles \"$f\""
echo $f >> $workdir/files.txt
done
# Append remove instructions for any dead files.
@@ -107,7 +108,7 @@ append_remove_instructions "$targetdir" "$updatemanifestv2" "$updatemanifestv3"
$BZIP2 -z9 "$updatemanifestv2" && mv -f "$updatemanifestv2.bz2" "$updatemanifestv2"
$BZIP2 -z9 "$updatemanifestv3" && mv -f "$updatemanifestv3.bz2" "$updatemanifestv3"
eval "$MAR -C \"$workdir\" -c output.mar $targetfiles"
eval "$MAR -C \"$workdir\" -c output.mar -f $workdir/files.txt"
mv -f "$workdir/output.mar" "$archive"
# cleanup