Hello community, here is the log from the commit of package mpv for openSUSE:Factory checked in at 2017-03-12 20:05:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mpv (Old) and /work/SRC/openSUSE:Factory/.mpv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mpv" Sun Mar 12 20:05:29 2017 rev:26 rq:478667 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/mpv/mpv.changes 2017-02-13 07:51:53.302524749 +0100 +++ /work/SRC/openSUSE:Factory/.mpv.new/mpv.changes 2017-03-12 20:05:29.721061220 +0100 @@ -1,0 +2,8 @@ +Sat Mar 11 10:40:24 UTC 2017 - [email protected] + +- Update mpv-bash-completion to 3.3.10 + * improve completion for file-specific options + * do not assume option types are always populated +- Fixed Factory build + +------------------------------------------------------------------- Old: ---- mpv-bash-completion-3.3.8.tar.gz New: ---- mpv-bash-completion-3.3.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mpv.spec ++++++ --- /var/tmp/diff_new_pack.jtoh7H/_old 2017-03-12 20:05:30.788910116 +0100 +++ /var/tmp/diff_new_pack.jtoh7H/_new 2017-03-12 20:05:30.792909550 +0100 @@ -19,7 +19,7 @@ # -%define _mbc_ver 3.3.8 +%define _mbc_ver 3.3.10 %define _mpv_ver 0.24.0 %define lname libmpv1 Name: mpv @@ -258,6 +258,10 @@ %doc build/DOCS/man/mpv.pdf %endif %doc Copyright LICENSE README.md RELEASE_NOTES +%doc %{_defaultdocdir}/%{name}/input.conf +%doc %{_defaultdocdir}/%{name}/mplayer-input.conf +%doc %{_defaultdocdir}/%{name}/mpv.conf +%doc %{_defaultdocdir}/%{name}/restore-old-bindings.conf %dir %{_sysconfdir}/%{name}/ %config %{_sysconfdir}/%{name}/encoding-profiles.conf %config %{_sysconfdir}/%{name}/input.conf ++++++ mpv-bash-completion-3.3.8.tar.gz -> mpv-bash-completion-3.3.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mpv-bash-completion-3.3.8/README.mkd new/mpv-bash-completion-3.3.10/README.mkd --- old/mpv-bash-completion-3.3.8/README.mkd 2017-01-19 18:37:06.000000000 +0100 +++ new/mpv-bash-completion-3.3.10/README.mkd 2017-03-10 22:50:13.000000000 +0100 @@ -20,8 +20,8 @@ * [Arch Linux](#arch-linux) * [Debian Jessie/Testing/Unstable + Ubuntu 16.04 Xenial](#debian) * Gentoo Linux, Funtoo Linux: [app-shells/mpv-bash-completion](https://packages.gentoo.org/packages/app-shells/mpv-bash-completion) -* [OS X Homebrew](#osx-homebrew) * [Generic Linux/OSX/Unix systems](#platform-agnostic-method) +* [OS X Homebrew](#osx-homebrew) (unmaintained) ## Source code @@ -117,6 +117,10 @@ ### OSX Homebrew +*Note: Since I do not have access to a Mac computer anymore, I cannot +maintain this formula any longer. I am leaving it here for the time +being hoping it is still working.* + You can simply install using the provided formula. You need to reinstall every time you upgrade mpv in order to update the completion function to match the current mpv build. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mpv-bash-completion-3.3.8/gen.lua new/mpv-bash-completion-3.3.10/gen.lua --- old/mpv-bash-completion-3.3.8/gen.lua 2017-01-19 18:37:06.000000000 +0100 +++ new/mpv-bash-completion-3.3.10/gen.lua 2017-03-10 22:50:13.000000000 +0100 @@ -251,8 +251,9 @@ ot = "Position" elseif ot == "String" then if wantsFile(tail) then ot = "File" - elseif o:match('directory') or o:match('dir') then - ot = "Directory" + if o:match('directory') or o:match('dir') then + ot = "Directory" + end else clist = { extractDefault(tail) } end @@ -533,18 +534,22 @@ i("esac; fi") i([=[if [[ -n $prev ]]; then case "$prev" in]=]) - i(string.format("%s)_filedir;return;;", - mapcator(keys(olist.File), function (e) - local o = string.format("--%s", e) - table.insert(all, o) - return o - end))) - i(string.format("%s)_filedir -d;return;;", - mapcator(keys(olist.Directory), function (e) - local o = string.format("--%s", e) - table.insert(all, o) - return o - end))) + if olist.File then + i(string.format("%s)_filedir;return;;", + mapcator(keys(olist.File), function (e) + local o = string.format("--%s", e) + table.insert(all, o) + return o + end))) + end + if olist.Directory then + i(string.format("%s)_filedir -d;return;;", + mapcator(keys(olist.Directory), function (e) + local o = string.format("--%s", e) + table.insert(all, o) + return o + end))) + end for o, p in ofType("Object", "Numeric", "Audio", "Color", "FourCC", "Image", "String", "Position", "Time") do if p.clist then table.sort(p.clist) end
