From d020fc5cc685db3b8db9c9bd7caad2e75a06e3f4 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 20 Jan 2013 14:47:06 +0000 Subject: fix bug#8757, gi-find-deps.sh incorrectly match 'imports.github' --- NEWS | 5 ++++- gi-find-deps.sh.in | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index d1485b3..726a517 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,7 @@ -Version 1.166 - 10 Jan 2012, by Arnaud Patard +Version 1.167 - 20 Jan 2013, by Funda Wang +- fix bug#8757, gi-find-deps.sh incorrectly match 'imports.github' + +Version 1.166 - 10 Jan 2013, by Arnaud Patard - remove -fsigned-char on arm, as it should not be needed any more - fix dwz configuration on arm diff --git a/gi-find-deps.sh.in b/gi-find-deps.sh.in index e8a5785..a377d5f 100755 --- a/gi-find-deps.sh.in +++ b/gi-find-deps.sh.in @@ -59,13 +59,13 @@ function find_requires { while read file; do case $file in *.js) - for module in $(grep -h -P -o "imports.gi.([^\s'\";]+)" $file | grep -v "imports.gi.version" | sed 's,imports.gi.,,'); do + for module in $(grep -h -P -o "imports\.gi\.([^\s'\";]+)" $file | grep -v "imports\.gi\.version" | sed 's,imports.gi.,,'); do split_name_version $module print_req_prov done ;; *.py) - for module in $(grep -h -P "from gi.repository import (\w+)" $file | sed 's:#.*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g'); do + for module in $(grep -h -P "from gi\.repository import (\w+)" $file | sed 's:#.*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g'); do split_name_version $module print_req_prov echo "python-gi >= 2.90.2" -- cgit v1.2.1