diff --git a/gi-find-deps.sh b/gi-find-deps.sh index 8d06e96..e798a3c 100644 --- a/gi-find-deps.sh +++ b/gi-find-deps.sh @@ -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 diff --git a/gobject-introspection.changes b/gobject-introspection.changes index f3fc16f..57a42f3 100644 --- a/gobject-introspection.changes +++ b/gobject-introspection.changes @@ -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