main/devicepkg-dev: remove deviceinfo link in kernel subpackages (MR 4596)

This was a fallout from the /usr/share relocation, only found and
reported now by z3ntu. If the device package happened to be installed
later, then the link would point to the wrong location.

Fixes 1d748a93dd
This commit is contained in:
Pablo Correa Gómez
2023-12-07 09:02:58 +01:00
committed by Oliver Smith
parent 97a6609aae
commit 18e44a52ab
2 changed files with 4 additions and 5 deletions
@@ -13,9 +13,8 @@ srcdir="$startdir/src"
pkgdir="$startdir/pkg/$pkgname"
subpkgdir="$startdir/pkg/$subpkgname"
if [ -e "$pkgdir/usr/share/deviceinfo/$pkgname" ]; then
rm -v "$pkgdir/usr/share/deviceinfo/$pkgname"
fi
rm -fv "$pkgdir/usr/share/deviceinfo/$pkgname"
rm -fv "$pkgdir/usr/share/deviceinfo/deviceinfo"
deviceinfo="$subpkgdir/usr/share/deviceinfo/$subpkgname"
install -Dm644 "$srcdir/deviceinfo" \