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