diff --git a/scripts/_common.sh b/scripts/_common.sh index e86dbf5..8bdcb55 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -14,6 +14,10 @@ extra_php_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-imagick # needed for raw upload and video playback pkg_dependencies="ufraw-batch ffmpeg" +if ! (apt-cache -q=0 show ufraw-batch |& grep ': No packages found' &>/dev/null); then + pkg_dependencies="$pkg_dependencies ufraw-batch" +fi + #================================================= # PERSONAL HELPERS #=================================================