]> Raphaƫl G. Git Repositories - youtubedl/blob - debian/patches/fix_libav_compat_outdated.patch
e8a3c52dd5fb35e4acd7025096a64037d3e4a2ad
[youtubedl] / debian / patches / fix_libav_compat_outdated.patch
1 From: Carlos Maddela <e7appew@gmail.com>
2 Date: Wed, 2 Mar 2016 04:20:06 +1100
3 Subject: Stop libav compatibility links from being considered as genuine.
4
5 Description: Stop libav compatibility links from being considered as genuine.
6 Don't register version numbers for compatibility links, so that
7 youtube-dl stops complaining about avconv being outdated.
8 Author: Carlos Maddela <e7appew@gmail.com>
9 Origin: vendor
10 Bug: https://github.com/rg3/youtube-dl/pull/8720
11 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798936
12 Last-Update: 2016-06-27
13 ---
14 youtube_dl/postprocessor/ffmpeg.py | 9 +++++++--
15 1 file changed, 7 insertions(+), 2 deletions(-)
16
17 --- a/youtube_dl/postprocessor/ffmpeg.py
18 +++ b/youtube_dl/postprocessor/ffmpeg.py
19 @@ -110,11 +110,16 @@
20 self._paths = dict(
21 (p, os.path.join(location, p)) for p in programs)
22 self._versions = dict(
23 - (p, get_exe_version(self._paths[p], args=['-version']))
24 + (p, get_exe_version(self._paths[p], args=['-version'],
25 + version_re=r'%s\s+version\s+([-0-9._a-zA-Z]+)' % p,
26 + unrecognized=False))
27 for p in programs)
28 if self._versions is None:
29 self._versions = dict(
30 - (p, get_exe_version(p, args=['-version'])) for p in programs)
31 + (p, get_exe_version(p, args=['-version'],
32 + version_re=r'%s\s+version\s+([-0-9._a-zA-Z]+)' % p,
33 + unrecognized=False))
34 + for p in programs)
35 self._paths = dict((p, p) for p in programs)
36
37 if prefer_ffmpeg is False: