diff options
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 |