Hello community, here is the log from the commit of package mpv for openSUSE:Factory checked in at 2017-04-12 17:36:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mpv (Old) and /work/SRC/openSUSE:Factory/.mpv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mpv" Wed Apr 12 17:36:31 2017 rev:28 rq:486711 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/mpv/mpv.changes 2017-04-06 11:01:04.892645963 +0200 +++ /work/SRC/openSUSE:Factory/.mpv.new/mpv.changes 2017-04-12 18:15:09.834885533 +0200 @@ -1,0 +2,12 @@ +Fri Apr 7 18:24:27 UTC 2017 - [email protected] + +- Update mpv-bash-completion to 3.3.12 + * Implement feature request #12: Previoiusly, the --profile + option would only list built-in profiles and not profiles + defined in configuration files because at build time, mpv is + called with the --no-config option. Now, --profile completions + are obtained by calling mpv directly, at completion run time, + and the completions now include profiles defined in + configuration files. + +------------------------------------------------------------------- Old: ---- mpv-bash-completion-3.3.11.tar.gz New: ---- mpv-bash-completion-3.3.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mpv.spec ++++++ --- /var/tmp/diff_new_pack.K5x6DZ/_old 2017-04-12 18:15:10.430801267 +0200 +++ /var/tmp/diff_new_pack.K5x6DZ/_new 2017-04-12 18:15:10.438800136 +0200 @@ -19,7 +19,7 @@ # -%define _mbc_ver 3.3.11 +%define _mbc_ver 3.3.12 %define _mpv_ver 0.24.0 %define lname libmpv1 Name: mpv ++++++ mpv-bash-completion-3.3.11.tar.gz -> mpv-bash-completion-3.3.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mpv-bash-completion-3.3.11/gen.lua new/mpv-bash-completion-3.3.12/gen.lua --- old/mpv-bash-completion-3.3.11/gen.lua 2017-03-26 00:19:57.000000000 +0100 +++ new/mpv-bash-completion-3.3.12/gen.lua 2017-04-07 19:31:00.000000000 +0200 @@ -231,10 +231,15 @@ local clist = nil -- Overrides for wrongly option type labels - if oneOf(o, "opengl-backend", "profile") then + if oneOf(o, "opengl-backend") then ot = "Object" end + -- Override for dynamic profile list expansion + if oneOf(o, "profile") then + ot = "Profile" + end + -- Override for codec/format listings which are of type String, not -- object if oneOf(o, "ad", "vd", "oac", "ovc") then @@ -272,6 +277,7 @@ end elseif ot == "Time" then clist = { "00:00:00" } elseif ot == "Window" then ot = "Dimen" + elseif ot == "Profile" then clist = {} else ot = "Single" end @@ -410,6 +416,11 @@ done printf "${o% }" } +_mpv_profiles(){ + type mpv &>/dev/null || return 0; + local p=$(mpv --profile help) + echo "${p##*:}" +} _mpv_xrandr(){ if [[ -z "$_mpv_xrandr_cache" && -n "$DISPLAY" ]] && type xrandr &>/dev/null; then _mpv_xrandr_cache=$(xrandr|while read l; do @@ -553,6 +564,14 @@ local o = string.format("--%s", e) table.insert(all, o) return o + end))) + end + if olist.Profile then + i(string.format([[%s)_mpv_s "$(_mpv_profiles)" "$cur";return;;]], + mapcator(keys(olist.Profile), function (e) + local o = string.format("--%s", e) + table.insert(all, o) + return o end))) end if olist.Directory then
