summaryrefslogtreecommitdiffstats
path: root/bin/reprepro_fix-changes.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-10 05:19:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-11 05:30:51 +0000
commit47ec43ae6c61a23add12dc99b463650f1658ffc6 (patch)
tree0a94d7df153bd1d26fd491c49076d82361d560ee /bin/reprepro_fix-changes.sh
parentUpdating. (diff)
downloadprogress-linux-tools-47ec43ae6c61a23add12dc99b463650f1658ffc6.tar.xz
progress-linux-tools-47ec43ae6c61a23add12dc99b463650f1658ffc6.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xbin/reprepro_fix-changes.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/reprepro_fix-changes.sh b/bin/reprepro_fix-changes.sh
index ae35550..cc89489 100755
--- a/bin/reprepro_fix-changes.sh
+++ b/bin/reprepro_fix-changes.sh
@@ -92,6 +92,13 @@ do
mv "${BUILDINFO}".tmp "${BUILDINFO}"
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"
+ sed -i -e "s|Build-Path: .*|Build-Path: /build/${DIRECTORY}|" "${BUILDINFO}"
+ fi
+
if [ ! -e "${BUILDINFO}" ]
then
continue