Merge pull request #136 from G3rb/patch-2

Conditional dependency btw libavcodec-ffmpeg56 and libavcodec-ffmpeg-extra56
preferencesAboutTextFull
kaamui 7 years ago committed by GitHub
commit ccc5efbb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      release_scripts/linux/package.sh

@ -347,8 +347,13 @@ for ((i=0;i<${#tab[@]};i++)); do
if [ $i -ne "0" ]; then if [ $i -ne "0" ]; then
echo -n ", " >> "$CONTROL_FILE" echo -n ", " >> "$CONTROL_FILE"
fi fi
# conditional dependency when libavcodec-ffmpeg56 or libavcodec-ffmpeg-extra56 is found
echo -n "${tab[$i]} (>= "`apt-cache show ${tab[$i]} | grep "Version: " | head -1 | awk '{ print $2 }' | sed -e 's/\([:. 0-9?]*\).*/\1/g' | sed -e 's/\.$//'`") " >> "$CONTROL_FILE" 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"
else
echo -n "${tab[$i]} (>= ${depdVer})" >> "$CONTROL_FILE"
fi
done done
echo -n ", onboard" >> "$CONTROL_FILE" echo -n ", onboard" >> "$CONTROL_FILE"

Loading…
Cancel
Save