diff --git a/pkg/deb/generator.sh b/pkg/deb/generator.sh index 6d0db9cc1..fb8f4c8ef 100755 --- a/pkg/deb/generator.sh +++ b/pkg/deb/generator.sh @@ -37,9 +37,12 @@ echo "- Set package-specific homepage" sed -i -e 's,^Homepage:.*,Homepage: https://rtpengine.com/,' debian/control echo "- Add Conflicts with NGCP packages" +# "Package: rtpengine-daemon" already has a Conflicts field. Handle it here +# separately, and exclude it from the batch rewrite below. +sed -i '/^Conflicts/ a \ ngcp-rtpengine-daemon,' debian/control while read -r line ; do sed -i "/${line}$/ a Conflicts: ngcp-${line#Package: }" debian/control -done < <(awk '/Package:/' debian/control) +done < <(grep '^Package:' debian/control | grep -v ' rtpengine-daemon$') echo "- Rename files" while read -r file; do