summaryrefslogtreecommitdiffstats
path: root/bin/reprepro_fix-changes.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-12 13:14:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-13 04:24:09 +0000
commit292a33da6bdb4b1e5f87e17b38d98b267a1bc209 (patch)
tree6c2e526ac52356e14c991ab1ea7128899a73ddff /bin/reprepro_fix-changes.sh
parentUpdating. (diff)
downloadprogress-linux-tools-292a33da6bdb4b1e5f87e17b38d98b267a1bc209.tar.xz
progress-linux-tools-292a33da6bdb4b1e5f87e17b38d98b267a1bc209.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xbin/reprepro_fix-changes.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/reprepro_fix-changes.sh b/bin/reprepro_fix-changes.sh
index cc89489..53dd94e 100755
--- a/bin/reprepro_fix-changes.sh
+++ b/bin/reprepro_fix-changes.sh
@@ -32,7 +32,7 @@ Fix_size ()
fi
}
-Fix_hashsums ()
+Fix_checksums ()
{
CHANGES="${1}"
BUILDINFO="${2}"
@@ -93,6 +93,7 @@ do
fi
DIRECTORY="$(basename ${BUILDINFO} | awk -F_ '{ print $1, $2 }' | sed -e 's| |-|' -e 's|~|_|g' -e 's|+|.|g')"
+
if ! grep -qs "Build-Path: /build/${DIRECTORY}|" "${BUILDINFO}"
then
echo "${CHANGES}: fix buildinfo build-path"
@@ -119,7 +120,7 @@ do
then
echo
echo "${CHANGES}: fix buildinfo sha1"
- Fix_hashsums ${CHANGES} ${BUILDINFO} ${SIZE}
+ Fix_checksums ${CHANGES} ${BUILDINFO} ${SIZE}
fi
SHA256SUM="$(sha256sum ${BUILDINFO} | awk '{ print $1 }')"
@@ -128,7 +129,7 @@ do
then
echo
echo "${CHANGES}: fix buildinfo sha256"
- Fix_hashsums ${CHANGES} ${BUILDINFO} ${SIZE}
+ Fix_checksums ${CHANGES} ${BUILDINFO} ${SIZE}
fi
MD5SUM="$(md5sum ${BUILDINFO} | awk '{ print $1 }')"
@@ -137,7 +138,7 @@ do
then
echo
echo "${CHANGES}: fix buildinfo md5"
- Fix_hashsums ${CHANGES} ${BUILDINFO} ${SIZE}
+ Fix_checksums ${CHANGES} ${BUILDINFO} ${SIZE}
fi
echo -n "."