Accepting request 1167123 from GNOME:Factory

- gi-find-deps.sh: further expand on the java script scanner. (forwarded request 1167036 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1167123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gobject-introspection?expand=0&rev=111
This commit is contained in:
Ana Guerrero 2024-04-14 09:53:54 +00:00 committed by Git OBS Bridge
commit 2a4fd6f197
2 changed files with 9 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function javascript_requires {
done
# some javascript code imports gi like this (seen since GNOME 43, e.g. GNOME Maps)
# import 'gi://GeocodeGlib?version=2.0'
for module in $(grep -h -P -o "[']gi://([^']+)" $1 | sed "s|'gi://||"); do
for module in $(grep -h -P -o "['\"]gi://([^'\"]+)" $1 | sed "s|['\"]gi://||"); do
split_name_versionjs_gi_name_version $module
print_req_prov
done
@ -222,6 +222,9 @@ while read file; do
*[Pp]ython*script*)
python_requires "$file"
;;
*JavaScript*source*)
javascript_requires "$file"
;;
*ELF*)
gresources_requires "$file"
;;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 8 13:59:57 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- gi-find-deps.sh: further expand on the java script scanner.
-------------------------------------------------------------------
Thu Apr 4 08:14:39 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>