Browse Source

MT#55283 fix up pkg generator for -gpu packages

Remove all -gpu packages from control for non-NGCP packages as currently
there's no way to build the. This keeps wrap-and-sort from choking on
the rewritten control file as it would contain duplicate "Conflicts"

Change-Id: Ic03ec2f11ceed2c4ea14f41e39a04096384842c0
dzenichev/fictitious
Richard Fuchs 2 years ago
parent
commit
079bfac2da
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      pkg/deb/generator.sh

+ 2
- 0
pkg/deb/generator.sh View File

@ -32,11 +32,13 @@ done < <(find debian -name '*links')
echo "- Remove NGCP packages from control"
sed -i -e '/ngcp-system-tools/d' debian/control
sed -i -e '/ngcp-libcudecs/d' debian/control
sed -i -n -e '/-gpu/ q; p' < debian/control
echo "- Set package-specific homepage"
sed -i -e 's,^Homepage:.*,Homepage: https://rtpengine.com/,' debian/control
echo "- Add Conflicts with NGCP packages"
# TODO: prevent duplicate "Conflicts" when -gpu packages are left in place
while read -r line ; do
sed -i "/${line}$/ a Conflicts: ngcp-${line#Package: }" debian/control
done < <(awk '/Package:/' debian/control)


Loading…
Cancel
Save