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

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

OBS-URL: https://build.opensuse.org/request/show/195421
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=127
This commit is contained in:
Dominique Leuenberger 2013-08-16 10:48:57 +00:00 committed by Git OBS Bridge
parent 05f34442d2
commit 1b81878200
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