diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-10 05:19:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-11 05:30:51 +0000 |
commit | 47ec43ae6c61a23add12dc99b463650f1658ffc6 (patch) | |
tree | 0a94d7df153bd1d26fd491c49076d82361d560ee /bin/reprepro_fix-changes.sh | |
parent | Updating. (diff) | |
download | progress-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-x | bin/reprepro_fix-changes.sh | 7 |
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 |