Hello community,

here is the log from the commit of package mpv for openSUSE:Factory checked in 
at 2017-04-06 11:01:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mpv (Old)
 and      /work/SRC/openSUSE:Factory/.mpv.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mpv"

Thu Apr  6 11:01:04 2017 rev:27 rq:482740 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/mpv/mpv.changes  2017-03-12 20:05:29.721061220 
+0100
+++ /work/SRC/openSUSE:Factory/.mpv.new/mpv.changes     2017-04-06 
11:01:04.892645963 +0200
@@ -1,0 +2,7 @@
+Sun Mar 26 11:44:07 UTC 2017 - [email protected]
+
+- Update mpv-bash-completion to 3.3.11
+  * Enable correct completion of the options --ad, --vd,
+    --oac, --ovc which where hitherto broken.
+
+-------------------------------------------------------------------

Old:
----
  mpv-bash-completion-3.3.10.tar.gz

New:
----
  mpv-bash-completion-3.3.11.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mpv.spec ++++++
--- /var/tmp/diff_new_pack.1No6Wb/_old  2017-04-06 11:01:05.556552131 +0200
+++ /var/tmp/diff_new_pack.1No6Wb/_new  2017-04-06 11:01:05.556552131 +0200
@@ -19,7 +19,7 @@
 #
 
 
-%define _mbc_ver 3.3.10
+%define _mbc_ver 3.3.11
 %define _mpv_ver 0.24.0
 %define lname   libmpv1
 Name:           mpv

++++++ mpv-bash-completion-3.3.10.tar.gz -> mpv-bash-completion-3.3.11.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpv-bash-completion-3.3.10/gen.lua 
new/mpv-bash-completion-3.3.11/gen.lua
--- old/mpv-bash-completion-3.3.10/gen.lua      2017-03-10 22:50:13.000000000 
+0100
+++ new/mpv-bash-completion-3.3.11/gen.lua      2017-03-26 00:19:57.000000000 
+0100
@@ -163,13 +163,20 @@
   return s:match("^%S+ (%S+)")
 end
 
-
 local function expandObject(o)
   local h = mpv(string.format("--%s help", o))
   local clist = {}
   for l in h:lines() do
     local m = l:match("^%s+([%S.]+)")
-    if m then table.insert(clist, m) end
+    if m then
+      -- oac, ovc special case: filter out --foo=needle
+      local tail = m:match("^--[^=]+=(.*)$")
+      if tail then
+        log(" ! %s :: %s -> %s", o, m, tail)
+        m = tail
+      end
+      table.insert(clist, m)
+    end
   end
   h:close()
   return clist
@@ -228,6 +235,12 @@
     ot = "Object"
   end
 
+  -- Override for codec/format listings which are of type String, not
+  -- object
+  if oneOf(o, "ad", "vd", "oac", "ovc") then
+    ot = "Object"
+  end
+
   if oneOf(ot, "Integer", "Double", "Float", "Integer64")
                             then clist = { extractDefault(tail), 
extractRange(tail) }
                                  ot = "Numeric"


Reply via email to