Hello community,
here is the log from the commit of package gobject-introspection for
openSUSE:Factory checked in at 2019-08-19 20:49:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gobject-introspection (Old)
and /work/SRC/openSUSE:Factory/.gobject-introspection.new.22127 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gobject-introspection"
Mon Aug 19 20:49:05 2019 rev:88 rq:723462 version:1.60.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/gobject-introspection/gobject-introspection.changes
2019-06-22 11:23:24.561336969 +0200
+++
/work/SRC/openSUSE:Factory/.gobject-introspection.new.22127/gobject-introspection.changes
2019-08-19 20:49:07.273076190 +0200
@@ -1,0 +2,6 @@
+Wed Aug 14 09:03:22 UTC 2019 - QK ZHU <[email protected]>
+
+- Update gi-find-deps.sh: upate javascript_requires function to parse
+ the new JS import style (bsc#1140614).
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gi-find-deps.sh ++++++
--- /var/tmp/diff_new_pack.4Lv3zL/_old 2019-08-19 20:49:08.365075956 +0200
+++ /var/tmp/diff_new_pack.4Lv3zL/_new 2019-08-19 20:49:08.365075956 +0200
@@ -78,6 +78,12 @@
}
function javascript_requires {
+ # parse the new import style in 3.32
+ for module in $(grep -r -h -A2 'const {' $1 | paste -s -d ' ' | grep '}
= imports.gi;' | sed 's/imports.gi;.*/imports.gi;/' | awk -F '[{}]' '{print
$(NF>1?NF-1:"")}' | tr ',' '\n' | tr -d ' ' | awk -F ':' '{print $1}'); do
+ split_name_version $module
+ print_req_prov
+ done
+ # parse the old import style before 3.32
for module in $(grep -h -P -o "imports\.gi\.([^\s'\";]+)" $1 | grep -v
"imports\.gi\.version" | sed -r -e 's,\s+$,,g' -e 's,imports.gi.,,'); do
split_name_version $module
print_req_prov
@@ -181,6 +187,7 @@
# . imports.gi.foo; [unversioned requirement of 'foo']
# . imports.gi.foo-1.0; [versioned requirement of 'foo']
# . imports.gi.versions.Gtk = '3.0';
+# . const { foo, bar } = imports.gi;
# . The imports can be listed on one line, and we catch them.
while read file; do