Accepting request 195429 from GNOME:Factory

- Enhance gi-find-deps.sh: when scannig python file for
  gi.require_version, make sure to ignore python comments (starting
  with #). (forwarded request 195421 from Zaitor)

OBS-URL: https://build.opensuse.org/request/show/195429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gobject-introspection?expand=0&rev=55
This commit is contained in:
Tomáš Chvátal 2013-08-19 11:31:21 +00:00 committed by Git OBS Bridge
commit 2d14293483
2 changed files with 8 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function python_requires {
# Temporarly disabled... this is not true if the python code is written for python3... And there seems no real 'way' to identify this.
# echo "python-gobject >= 2.21.4"
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:#.*::' -e 's:.*gi.require_version::' -e "s:[()\"' ]::g" -e 's:,:-:'); do
split_name_version $module
print_req_prov
done

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 16 08:44:06 UTC 2013 - dimstar@opensuse.org
- Enhance gi-find-deps.sh: when scannig python file for
gi.require_version, make sure to ignore python comments (starting
with #).
-------------------------------------------------------------------
Thu Aug 15 06:56:37 UTC 2013 - dimstar@opensuse.org