Accepting request 136626 from home:dimstar:branches:GNOME:Factory

- Extend gi-find-deps.sh to understand versioned gi imports in
  JavaScript (*.js) code.

OBS-URL: https://build.opensuse.org/request/show/136626
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=104
This commit is contained in:
Dominique Leuenberger 2012-10-02 18:16:15 +00:00 committed by Git OBS Bridge
parent 079bb1e240
commit 988eb164e2
2 changed files with 11 additions and 0 deletions

View File

@ -63,6 +63,11 @@ while read file; do
split_name_version $module
print_req_prov
done
for module in $(grep -h -P -o "imports.gi.versions.([^\s'\";]+)\s*=\s*['\"].+['\"]" $file | \
sed -e 's:imports.gi.versions.::' -e "s:['\"]::g" -e 's:=:-:' -e 's: ::g'); do
split_name_version $module
print_req_prov
done
;;
*.py)
for module in $(grep -h -P "from gi.repository import (\w+)" $file | sed -e 's:#.*::' -e 's:raise ImportError.*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+$::g' -e 's:\s+as\s+\w+::g' -e 's:,: :g'); do

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 2 16:13:01 UTC 2012 - dimstar@opensuse.org
- Extend gi-find-deps.sh to understand versioned gi imports in
JavaScript (*.js) code.
-------------------------------------------------------------------
Mon Sep 24 18:54:52 UTC 2012 - dimstar@opensuse.org