From 988eb164e240fcf40b4570fce4853a1b6444624bfe3f49c1eab146259f8fcf64 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 2 Oct 2012 18:16:15 +0000 Subject: [PATCH] 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 --- gi-find-deps.sh | 5 +++++ gobject-introspection.changes | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gi-find-deps.sh b/gi-find-deps.sh index 506c03d..36d85df 100644 --- a/gi-find-deps.sh +++ b/gi-find-deps.sh @@ -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 diff --git a/gobject-introspection.changes b/gobject-introspection.changes index 49507a6..afc1956 100644 --- a/gobject-introspection.changes +++ b/gobject-introspection.changes @@ -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