Accepting request 76517 from GNOME:Factory

Fix gi-find-deps to deal with \r\n (forwarded request 76485 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/76517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gobject-introspection?expand=0&rev=28
This commit is contained in:
Sascha Peilicke 2011-07-21 06:58:48 +00:00 committed by Git OBS Bridge
commit bfca4632d6
2 changed files with 10 additions and 2 deletions

View File

@ -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 -r -e 's,\s+$,,g' -e '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:,: :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+$::g' -e 's:\s+as\s+\w+::g' -e 's:,: :g'); do
split_name_version $module
print_req_prov
done

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jul 19 17:51:07 CEST 2011 - vuntz@opensuse.org
- gi-find-deps.sh: Remove trailing space characters from the
import lines, when listing the required typelibs. This fixes an
issue with files using \r\n to end a line (since \r was kept, and
was breaking the output of the script).
-------------------------------------------------------------------
Mon Jul 11 13:24:35 CEST 2011 - vuntz@opensuse.org