Corrected sorting of /md5sum.txt by merge_debian_isos

This commit is contained in:
Thomas Schmitt 2022-06-20 22:09:24 +02:00
parent 68c4a39c37
commit 87aab73058
2 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,10 @@
# Copyright 2022 Thomas Schmitt <scdbackup@gmx.net> , libburnia project.
# Provided under BSD license: Use, modify, and distribute as you like.
# This obtrusive setting shall make the script safe against exotic locales.
export LANG=C
export LC_ALL=C
usage() {
echo "usage: $(basename "$0") result_iso mount_template iso1 iso2 [... isoN]" >&2
echo >&2
@ -619,7 +623,7 @@ echo "Merging package description files ..." >&2
for i in $MOUNT_LIST
do
cat "$i"/md5sum.txt
done | sort >merged_md5sum.txt
done | sort -k 2 >merged_md5sum.txt
# Determine the files which are mentioned with checksum in main Release files
path_list=$(for i in $MOUNT_LIST
@ -720,7 +724,8 @@ echo "Done." >&2
echo >&2
echo "Producing result ISO image ..." >&2
# Create file with list of pool -map commands for all but the first ISO
# Create file with list of /pool and /firmware -map commands for all but the
# first ISO
for mount_point in $MOUNT_LIST
do
if test "$mount_point" = "$mount_point_1"
@ -731,7 +736,6 @@ do
echo " -map ${mount_point}/pool /pool" >>temp_file
fi
done
for mount_point in $MOUNT_LIST
do
if test "$mount_point" = "$mount_point_1"

Binary file not shown.