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:
parent
079bb1e240
commit
988eb164e2
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user