Hello community,

here is the log from the commit of package yast2-python-bindings for 
openSUSE:Factory checked in at 2019-01-10 15:23:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-python-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-python-bindings.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-python-bindings"

Thu Jan 10 15:23:28 2019 rev:39 rq:664114 version:4.0.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/yast2-python-bindings/yast2-python-bindings.changes  
    2018-09-26 14:23:45.133890251 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-python-bindings.new.28833/yast2-python-bindings.changes
   2019-01-10 15:23:29.718320884 +0100
@@ -1,0 +2,16 @@
+Wed Jan  9 14:52:04 UTC 2019 - dmul...@suse.com
+
+- Define yast._() as an alias to gettext(); (bsc#1121106).
+
+-------------------------------------------------------------------
+Tue Jan  8 20:29:50 UTC 2019 - dmul...@suse.com
+
+- Provide textdomain() and gettext() functions for
+  internationization; (bsc#1121106).
+
+-------------------------------------------------------------------
+Tue Oct 16 16:16:58 CEST 2018 - sch...@suse.de
+
+- Added license file to spec.
+
+-------------------------------------------------------------------

Old:
----
  yast2-python-bindings-4.0.5.tar.bz2

New:
----
  yast2-python-bindings-4.0.7.tar.bz2

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

Other differences:
------------------
++++++ yast2-python-bindings.spec ++++++
--- /var/tmp/diff_new_pack.PULKTS/_old  2019-01-10 15:23:30.282320300 +0100
+++ /var/tmp/diff_new_pack.PULKTS/_new  2019-01-10 15:23:30.282320300 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-python-bindings
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,7 @@
 %endif
 
 Name:           yast2-python-bindings
-Version:        4.0.5
+Version:        4.0.7
 Release:        0
 Summary:        Python bindings for the YaST platform
 License:        GPL-2.0-only
@@ -131,5 +131,6 @@
 %{python_sitearch}/_ycp.so*
 %{yast_plugindir}/libpy2lang_python.so.*
 %{yast_plugindir}/libpy2lang_python.so
+%license COPYING
 
 %changelog

++++++ yast2-python-bindings-4.0.5.tar.bz2 -> 
yast2-python-bindings-4.0.7.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-python-bindings-4.0.5/package/yast2-python-bindings.changes 
new/yast2-python-bindings-4.0.7/package/yast2-python-bindings.changes
--- old/yast2-python-bindings-4.0.5/package/yast2-python-bindings.changes       
2018-09-25 16:54:15.000000000 +0200
+++ new/yast2-python-bindings-4.0.7/package/yast2-python-bindings.changes       
2019-01-09 16:19:59.000000000 +0100
@@ -1,4 +1,20 @@
 -------------------------------------------------------------------
+Wed Jan  9 14:52:04 UTC 2019 - dmul...@suse.com
+
+- Define yast._() as an alias to gettext(); (bsc#1121106).
+
+-------------------------------------------------------------------
+Tue Jan  8 20:29:50 UTC 2019 - dmul...@suse.com
+
+- Provide textdomain() and gettext() functions for
+  internationization; (bsc#1121106).
+
+-------------------------------------------------------------------
+Tue Oct 16 16:16:58 CEST 2018 - sch...@suse.de
+
+- Added license file to spec.
+
+-------------------------------------------------------------------
 Sat Sep 15 15:04:15 UTC 2018 - nopo...@suse.com
 
 - Fix Id construction for python2, use items instead of iteritems
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-python-bindings-4.0.5/package/yast2-python-bindings.spec 
new/yast2-python-bindings-4.0.7/package/yast2-python-bindings.spec
--- old/yast2-python-bindings-4.0.5/package/yast2-python-bindings.spec  
2018-09-25 16:54:15.000000000 +0200
+++ new/yast2-python-bindings-4.0.7/package/yast2-python-bindings.spec  
2019-01-09 16:19:59.000000000 +0100
@@ -23,7 +23,7 @@
 %endif
 
 Name:           yast2-python-bindings
-Version:        4.0.5
+Version:        4.0.7
 Release:        0
 Summary:        Python bindings for the YaST platform
 License:        GPL-2.0-only
@@ -131,5 +131,6 @@
 %{python_sitearch}/_ycp.so*
 %{yast_plugindir}/libpy2lang_python.so.*
 %{yast_plugindir}/libpy2lang_python.so
+%license COPYING
 
 %changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-python-bindings-4.0.5/src/Makefile.am 
new/yast2-python-bindings-4.0.7/src/Makefile.am
--- old/yast2-python-bindings-4.0.5/src/Makefile.am     2018-09-25 
16:54:15.000000000 +0200
+++ new/yast2-python-bindings-4.0.7/src/Makefile.am     2019-01-09 
16:19:59.000000000 +0100
@@ -1,7 +1,10 @@
-BUILT_SOURCES = ycp.py
+BUILT_SOURCES = ycp.py yast.py
 ycp.py yast-core_wrap.cxx: yast-core.i ytypes.i ycp.i $(libpy2UI) YCPMap.h 
y2log.i yast.h ytypes.h y2log.h PythonLogger.h Y2PythonClientComponent.h 
YPythonCode.h Y2CCPythonClient.h
        $(SWIG) $(AX_SWIG_PYTHON_OPT) -c++ -I/usr/include/YaST2 -o $@ $<
 
+yast.py: yast.py.in
+       sed -e 's;[@]DATADIR[@];$(datadir);g' < $(srcdir)/yast.py.in > 
$(srcdir)/yast.py
+
 # Remove non-standard syntax unrecognized by swig from YCPMap.h
 YCPMap.h:
        sed 's/__attribute__ ((deprecated)) //g' 
/usr/include/YaST2/ycp/YCPMap.h > YCPMap.h
@@ -29,4 +32,4 @@
 
 AM_CXXFLAGS = -DY2LOG=\"Python\"
 
-CLEANFILES = ycp.py yast-core_wrap.cxx YCPMap.h
+CLEANFILES = ycp.py yast.py yast-core_wrap.cxx YCPMap.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-python-bindings-4.0.5/src/yast.py 
new/yast2-python-bindings-4.0.7/src/yast.py
--- old/yast2-python-bindings-4.0.5/src/yast.py 2018-09-25 16:54:15.000000000 
+0200
+++ new/yast2-python-bindings-4.0.7/src/yast.py 1970-01-01 01:00:00.000000000 
+0100
@@ -1,177 +0,0 @@
-from __future__ import absolute_import, division, print_function, 
unicode_literals
-import ycpbuiltins
-from ycp import Symbol, List, String, Integer, Boolean, Float, Code, Map, 
Byteblock, Path, Void
-
-def import_module(module):
-    from ycp import import_module as ycp_import_module
-    m = ycp_import_module(module)
-    if m:
-        globals()[module] = m
-
-def SCR_Run(func, *args):
-    from ycp import _SCR_Run, pyval_to_ycp
-    l = List()
-    for item in args:
-        l.push_back(pyval_to_ycp(item))
-    return _SCR_Run('SCR::'+func, l)
-
-scr_meta_funcs = [
-    'Read',
-    'Write',
-    'Execute',
-    'Dir',
-    'Error',
-    'RegisterAgent',
-    'RegisterNewAgents',
-    'UnregisterAgent',
-    'UnregisterAllAgents',
-    'UnmountAgent',
-]
-
-class SCR:
-    pass
-
-def scr_meta_func_creator(func):
-    return staticmethod(lambda *args : SCR_Run(func, *args))
-
-for func in scr_meta_funcs:
-    setattr(SCR, func, scr_meta_func_creator(func))
-
-def run(func, *args):
-    from ycp import pyval_to_ycp
-    from ycp import Term as YCPTerm
-    l = List()
-    for item in args:
-        l.push_back(pyval_to_ycp(item))
-    return YCPTerm(func, l)
-
-def meta_func_creator(func, lowercase):
-    if lowercase:
-        func = func.lower()
-    return (lambda *args : run(func, *args))
-
-current_module = __import__(__name__)
-meta_funcs = {
-        'BarGraph': False,
-        'BusyIndicator': False,
-        'ButtonBox': False,
-        'CheckBox': False,
-        'CheckBoxFrame': False,
-        'ComboBox': False,
-        'DateField': False,
-        'DownloadProgress': False,
-        'DumbTab': False,
-        'Empty': False,
-        'Graph': False,
-        'Frame': False,
-        'HBox': False,
-        'VBox': False,
-        'HSpacing': False,
-        'VSpacing': False,
-        'HStretch': False,
-        'VStretch': False,
-        'HSquash': False,
-        'VSquash': False,
-        'HVSquash': False,
-        'HWeight': False,
-        'VWeight': False,
-        'Image': False,
-        'InputField': False,
-        'TextEntry': False,
-        'Password': False,
-        'IntField': False,
-        'Label': False,
-        'Heading': False,
-        'Left': False,
-        'Right': False,
-        'Top': False,
-        'Bottom': False,
-        'HCenter': False,
-        'VCenter': False,
-        'HVCenter': False,
-        'LogView': False,
-        'MarginBox': False,
-        'MenuButton': False,
-        'MinWidth': False,
-        'MinHeight': False,
-        'MinSize': False,
-        'MultiLineEdit': False,
-        'MultiSelectionBox': False,
-        'PackageSelector': False,
-        'PartitionSplitter': False,
-        'PatternSelector': False,
-        'ProgressBar': False,
-        'PushButton': False,
-        'RadioButton': False,
-        'RadioButtonGroup' : False,
-        'ReplacePoint': False,
-        'RichText': False,
-        'SelectionBox': False,
-        'SimplePatchSelector' : False,
-        'Slider': False,
-        'Table': False,
-        'Header' : True,
-        'Item' : True,
-        'TimeField': False,
-        'TimezoneSelector': False,
-        'Tree': False,
-        'VMultiProgressMeter': False,
-        'HMultiProgressMeter': False,
-        'Cell': False,
-        'Center': False,
-        'ColoredLabel': False,
-        'Dummy': False,
-        'DummySpecialWidget': False,
-        'HVStretch': False,
-        'IconButton': False,
-        'PkgSpecial': False,
-        'Wizard': False,
-       }
-
-for func in meta_funcs.keys():
-    setattr(current_module, func, meta_func_creator(func, meta_funcs[func]))
-
-del scr_meta_funcs, scr_meta_func_creator, meta_func_creator, current_module, 
meta_funcs, func
-
-def Term(*args):
-    from ycp import Term as YCPTerm
-    from ycp import pyval_to_ycp
-    from six import binary_type, text_type, PY2
-    if PY2 and isinstance(args[0], text_type):
-        name = binary_type(args[0])
-    else:
-        name = args[0]
-    l = None
-    if len(args) > 1:
-        l = List()
-        for item in args[1:]:
-            l.add(pyval_to_ycp(item))
-    if l is not None:
-        return YCPTerm(name, l)
-    return YCPTerm(name)
-
-def Opt(*args):
-    from ycp import Term as YCPTerm
-    from six import binary_type, text_type, PY2
-    l = List()
-    for arg in args:
-        if PY2 and isinstance(arg, text_type):
-            arg = binary_type(arg)
-        l.add(Symbol(arg))
-    return YCPTerm("opt", l)
-
-# Id can take argument other than string
-def Id(arg, dont_force_sym = False):
-    from ycp import pyval_to_ycp
-    from ycp import Term as YCPTerm
-    from six import binary_type, string_types, PY2
-    l = List()
-    if isinstance(arg, string_types) and not dont_force_sym:
-        if PY2:
-            l.add(Symbol(binary_type(arg)))
-        else:
-            l.add(Symbol(arg))
-    else:
-        l.add(pyval_to_ycp(arg))
-    return YCPTerm("id", l)
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-python-bindings-4.0.5/src/yast.py.in 
new/yast2-python-bindings-4.0.7/src/yast.py.in
--- old/yast2-python-bindings-4.0.5/src/yast.py.in      1970-01-01 
01:00:00.000000000 +0100
+++ new/yast2-python-bindings-4.0.7/src/yast.py.in      2019-01-09 
16:19:59.000000000 +0100
@@ -0,0 +1,184 @@
+from __future__ import absolute_import, division, print_function, 
unicode_literals
+import ycpbuiltins
+from ycp import Symbol, List, String, Integer, Boolean, Float, Code, Map, 
Byteblock, Path, Void
+
+from gettext import gettext
+globals()['_'] = gettext
+def textdomain(domain):
+    from gettext import bindtextdomain, textdomain as gt_textdomain
+    bindtextdomain(domain, '@DATADIR@/YaST2/locale')
+    gt_textdomain(domain)
+
+def import_module(module):
+    from ycp import import_module as ycp_import_module
+    m = ycp_import_module(module)
+    if m:
+        globals()[module] = m
+
+def SCR_Run(func, *args):
+    from ycp import _SCR_Run, pyval_to_ycp
+    l = List()
+    for item in args:
+        l.push_back(pyval_to_ycp(item))
+    return _SCR_Run('SCR::'+func, l)
+
+scr_meta_funcs = [
+    'Read',
+    'Write',
+    'Execute',
+    'Dir',
+    'Error',
+    'RegisterAgent',
+    'RegisterNewAgents',
+    'UnregisterAgent',
+    'UnregisterAllAgents',
+    'UnmountAgent',
+]
+
+class SCR:
+    pass
+
+def scr_meta_func_creator(func):
+    return staticmethod(lambda *args : SCR_Run(func, *args))
+
+for func in scr_meta_funcs:
+    setattr(SCR, func, scr_meta_func_creator(func))
+
+def run(func, *args):
+    from ycp import pyval_to_ycp
+    from ycp import Term as YCPTerm
+    l = List()
+    for item in args:
+        l.push_back(pyval_to_ycp(item))
+    return YCPTerm(func, l)
+
+def meta_func_creator(func, lowercase):
+    if lowercase:
+        func = func.lower()
+    return (lambda *args : run(func, *args))
+
+current_module = __import__(__name__)
+meta_funcs = {
+        'BarGraph': False,
+        'BusyIndicator': False,
+        'ButtonBox': False,
+        'CheckBox': False,
+        'CheckBoxFrame': False,
+        'ComboBox': False,
+        'DateField': False,
+        'DownloadProgress': False,
+        'DumbTab': False,
+        'Empty': False,
+        'Graph': False,
+        'Frame': False,
+        'HBox': False,
+        'VBox': False,
+        'HSpacing': False,
+        'VSpacing': False,
+        'HStretch': False,
+        'VStretch': False,
+        'HSquash': False,
+        'VSquash': False,
+        'HVSquash': False,
+        'HWeight': False,
+        'VWeight': False,
+        'Image': False,
+        'InputField': False,
+        'TextEntry': False,
+        'Password': False,
+        'IntField': False,
+        'Label': False,
+        'Heading': False,
+        'Left': False,
+        'Right': False,
+        'Top': False,
+        'Bottom': False,
+        'HCenter': False,
+        'VCenter': False,
+        'HVCenter': False,
+        'LogView': False,
+        'MarginBox': False,
+        'MenuButton': False,
+        'MinWidth': False,
+        'MinHeight': False,
+        'MinSize': False,
+        'MultiLineEdit': False,
+        'MultiSelectionBox': False,
+        'PackageSelector': False,
+        'PartitionSplitter': False,
+        'PatternSelector': False,
+        'ProgressBar': False,
+        'PushButton': False,
+        'RadioButton': False,
+        'RadioButtonGroup' : False,
+        'ReplacePoint': False,
+        'RichText': False,
+        'SelectionBox': False,
+        'SimplePatchSelector' : False,
+        'Slider': False,
+        'Table': False,
+        'Header' : True,
+        'Item' : True,
+        'TimeField': False,
+        'TimezoneSelector': False,
+        'Tree': False,
+        'VMultiProgressMeter': False,
+        'HMultiProgressMeter': False,
+        'Cell': False,
+        'Center': False,
+        'ColoredLabel': False,
+        'Dummy': False,
+        'DummySpecialWidget': False,
+        'HVStretch': False,
+        'IconButton': False,
+        'PkgSpecial': False,
+        'Wizard': False,
+       }
+
+for func in meta_funcs.keys():
+    setattr(current_module, func, meta_func_creator(func, meta_funcs[func]))
+
+del scr_meta_funcs, scr_meta_func_creator, meta_func_creator, current_module, 
meta_funcs, func
+
+def Term(*args):
+    from ycp import Term as YCPTerm
+    from ycp import pyval_to_ycp
+    from six import binary_type, text_type, PY2
+    if PY2 and isinstance(args[0], text_type):
+        name = binary_type(args[0])
+    else:
+        name = args[0]
+    l = None
+    if len(args) > 1:
+        l = List()
+        for item in args[1:]:
+            l.add(pyval_to_ycp(item))
+    if l is not None:
+        return YCPTerm(name, l)
+    return YCPTerm(name)
+
+def Opt(*args):
+    from ycp import Term as YCPTerm
+    from six import binary_type, text_type, PY2
+    l = List()
+    for arg in args:
+        if PY2 and isinstance(arg, text_type):
+            arg = binary_type(arg)
+        l.add(Symbol(arg))
+    return YCPTerm("opt", l)
+
+# Id can take argument other than string
+def Id(arg, dont_force_sym = False):
+    from ycp import pyval_to_ycp
+    from ycp import Term as YCPTerm
+    from six import binary_type, string_types, PY2
+    l = List()
+    if isinstance(arg, string_types) and not dont_force_sym:
+        if PY2:
+            l.add(Symbol(binary_type(arg)))
+        else:
+            l.add(Symbol(arg))
+    else:
+        l.add(pyval_to_ycp(arg))
+    return YCPTerm("id", l)
+


Reply via email to