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

- Fix gi-find-deps.sh: escape "." in grep calls ("\.").

OBS-URL: https://build.opensuse.org/request/show/149595
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=114
This commit is contained in:
Dominique Leuenberger 2013-01-23 16:34:14 +00:00 committed by Git OBS Bridge
parent 36f15dba59
commit 8d03ebf4e3
3 changed files with 10 additions and 5 deletions

View File

@ -40,23 +40,23 @@ done
} }
function python_requires { function python_requires {
for module in $(grep -h -P "from gi.repository import (\w+)" $1 | 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 for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | 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
split_name_version $module split_name_version $module
print_req_prov print_req_prov
echo "python-gobject >= 2.21.4" echo "python-gobject >= 2.21.4"
done done
for module in $(grep -h -P -o "(gi.require_version\(['\"][^'\"]+['\"],\s*['\"][^'\"]+['\"]\))" $1 | sed -e 's:gi.require_version::' -e "s:[()\"' ]::g" -e 's:,:-:'); do for module in $(grep -h -P -o "(gi\.require_version\(['\"][^'\"]+['\"],\s*['\"][^'\"]+['\"]\))" $1 | sed -e 's:gi.require_version::' -e "s:[()\"' ]::g" -e 's:,:-:'); do
split_name_version $module split_name_version $module
print_req_prov print_req_prov
done done
} }
function javascript_requires { function javascript_requires {
for module in $(grep -h -P -o "imports.gi.([^\s'\";]+)" $1 | grep -v "imports.gi.version" | sed -r -e 's,\s+$,,g' -e 's,imports.gi.,,'); do for module in $(grep -h -P -o "imports\.gi\.([^\s'\";]+)" $1 | grep -v "imports\.gi\.version" | sed -r -e 's,\s+$,,g' -e 's,imports.gi.,,'); do
split_name_version $module split_name_version $module
print_req_prov print_req_prov
done done
for module in $(grep -h -P -o "imports.gi.versions.([^\s'\";]+)\s*=\s*['\"].+['\"]" $1 | \ for module in $(grep -h -P -o "imports\.gi\.versions.([^\s'\";]+)\s*=\s*['\"].+['\"]" $1 | \
sed -e 's:imports.gi.versions.::' -e "s:['\"]::g" -e 's:=:-:' -e 's: ::g'); do sed -e 's:imports.gi.versions.::' -e "s:['\"]::g" -e 's:=:-:' -e 's: ::g'); do
split_name_version $module split_name_version $module
print_req_prov print_req_prov

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 22 13:11:47 UTC 2013 - dimstar@opensuse.org
- Fix gi-find-deps.sh: escape "." in grep calls ("\.").
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 10 22:39:56 UTC 2012 - dimstar@opensuse.org Mon Dec 10 22:39:56 UTC 2012 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package gobject-introspection # spec file for package gobject-introspection
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed