aboutsummaryrefslogtreecommitdiffstats
path: root/gi-find-deps.sh.in
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2014-05-26 19:56:59 +0300
committerJani Välimaa <wally@mageia.org>2014-05-26 19:56:59 +0300
commitd051cc37107dabfab411f4a43dae6766455239d7 (patch)
treeba68c1144a9a2258da78dce91dbea9b405fdba1c /gi-find-deps.sh.in
parent0e4f55332cdb7013f0b470a5b25da77aa186a31d (diff)
downloadrpm-setup-d051cc37107dabfab411f4a43dae6766455239d7.tar
rpm-setup-d051cc37107dabfab411f4a43dae6766455239d7.tar.gz
rpm-setup-d051cc37107dabfab411f4a43dae6766455239d7.tar.bz2
rpm-setup-d051cc37107dabfab411f4a43dae6766455239d7.tar.xz
rpm-setup-d051cc37107dabfab411f4a43dae6766455239d7.zip
gi-find-deps.sh: improve sed magic to handle special sugar typelib requires1.198
Diffstat (limited to 'gi-find-deps.sh.in')
-rwxr-xr-xgi-find-deps.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi-find-deps.sh.in b/gi-find-deps.sh.in
index a66868d..60d8355 100755
--- a/gi-find-deps.sh.in
+++ b/gi-find-deps.sh.in
@@ -52,7 +52,7 @@ function javascript_requires {
}
function python_requires {
- for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | sed 's:#.*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g'); do
+ for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | sed 's:#.*::' | sed -e 's,.*from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g' -e 's:\s[0-9]+\s: :g' -e 's:[^A-Za-z0-9\.\-]: :g'); do
split_name_version $module
print_req_prov
# Temporarly disabled... this is not true if the python code is written for python3... And there seems no real 'way' to identify this.