mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-17 16:49:04 +00:00
HEIC: Allow install-libheif.sh to upgrade held package #5708
This commit is contained in:
parent
50d4256b71
commit
b1a7a5d147
1 changed files with 4 additions and 2 deletions
6
scripts/dist/install-libheif.sh
vendored
6
scripts/dist/install-libheif.sh
vendored
|
|
@ -93,8 +93,10 @@ if [[ $VERSION_CODENAME == "resolute" ]] && [[ $DESTDIR == "/usr" || $DESTDIR ==
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# photoprism-libheif is apt-mark held after install, so an explicit version bump
|
||||||
|
# must pass --allow-change-held-packages or apt refuses to upgrade the held package.
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
if apt-get install -y --no-install-recommends "$TMPDEB"; then
|
if apt-get install -y --allow-change-held-packages --no-install-recommends "$TMPDEB"; then
|
||||||
apt-mark hold photoprism-libheif > /dev/null
|
apt-mark hold photoprism-libheif > /dev/null
|
||||||
rm -f "$TMPDEB"
|
rm -f "$TMPDEB"
|
||||||
echo "✅ Installed photoprism-libheif from \"$URL\"."
|
echo "✅ Installed photoprism-libheif from \"$URL\"."
|
||||||
|
|
@ -192,7 +194,7 @@ STUBEOF
|
||||||
dpkg-deb --build --root-owner-group "$STUB_DIR" "$STUB_DEB" > /dev/null
|
dpkg-deb --build --root-owner-group "$STUB_DIR" "$STUB_DEB" > /dev/null
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
if apt-get install -y --no-install-recommends "$STUB_DEB"; then
|
if apt-get install -y --allow-change-held-packages --no-install-recommends "$STUB_DEB"; then
|
||||||
apt-mark hold photoprism-libheif > /dev/null
|
apt-mark hold photoprism-libheif > /dev/null
|
||||||
echo "✅ Installed photoprism-libheif stub (apt's libheif1/libheif-plugin-* superseded)."
|
echo "✅ Installed photoprism-libheif stub (apt's libheif1/libheif-plugin-* superseded)."
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue