From e595d54be5087d043d1ab1532f270e0c12f908e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Mon, 25 Mar 2019 09:21:08 +0100 Subject: [PATCH] fixed an issue to handle version 57 of ffmpeg avcodec library on some distros --- release_scripts/linux/package.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release_scripts/linux/package.sh b/release_scripts/linux/package.sh index 2455aa4c..7837431e 100755 --- a/release_scripts/linux/package.sh +++ b/release_scripts/linux/package.sh @@ -351,6 +351,8 @@ for ((i=0;i<${#tab[@]};i++)); do depdVer=$(apt-cache show ${tab[$i]} | grep "Version: " | head -1 | awk '{ print $2 }' | sed -e 's/\([~:. 0-9?]*\).*/\1/g' | sed -e 's/\.$//') if [ "${tab[$i]}" == "libavcodec-ffmpeg56" ] || [ "${tab[$i]}" == "libavcodec-ffmpeg-extra56" ]; then echo -n "libavcodec-ffmpeg56 (>= ${depdVer}) | libavcodec-ffmpeg-extra56 (>= ${depdVer})" >> "$CONTROL_FILE" + elif [ "${tab[$i]}" == "libavcodec-ffmpeg57" ] || [ "${tab[$i]}" == "libavcodec-ffmpeg-extra57" ]; then + echo -n "libavcodec-ffmpeg57 (>= ${depdVer}) | libavcodec-ffmpeg-extra57 (>= ${depdVer})" >> "$CONTROL_FILE" else echo -n "${tab[$i]} (>= ${depdVer})" >> "$CONTROL_FILE" fi