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:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user