Accepting request 145116 from home:dimstar:branches:GNOME:Factory
Add python-gobject dependency when we find gi.requires in a *.py file... OBS-URL: https://build.opensuse.org/request/show/145116 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=112
This commit is contained in:
parent
d9b5cdcfd1
commit
36f15dba59
@ -43,6 +43,7 @@ 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"
|
||||||
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
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 10 22:39:56 UTC 2012 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Enhance gi-find-deps.sh: in case we add typelib() requires for
|
||||||
|
python scripts, we are sure that this script would also require
|
||||||
|
python-gobject (which provides gi.repository). Fixes issues
|
||||||
|
similar to bnc#793758.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 13 14:33:07 UTC 2012 - dimstar@opensuse.org
|
Tue Nov 13 14:33:07 UTC 2012 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user