Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > f079673e0342b8964ef2a1ecccbc43ae > files > 4

rpm-mageia-setup-2.79.1-1.mga10.src.rpm

diff --git a/gi-find-deps.sh b/gi-find-deps.sh
index b2d62eb..b0eaf28 100755
--- a/gi-find-deps.sh
+++ b/gi-find-deps.sh
@@ -60,7 +60,7 @@ rm -rf "$tmpdir"
 }
 
 function python_requires {
-	for module in $(egrep -v '^{{' $1| perl -p -e 's!{{[^}]*}}!!g if /^from \S+ import/'| grep -h -P "^\s*from gi\.repository import (\w+)" | sed -e 's:#.*::' -e 's:raise ImportError.*::' -e 's:.*"from gi.repository import .*".*::' | 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 -E -v '^{{' $1| perl -p -e 's!{{[^}]*}}!!g if /^from \S+ import/'| grep -h -P "^\s*from gi\.repository import (\w+)" | sed -e 's:#.*::' -e 's:raise ImportError.*::' -e 's:.*"from gi.repository import .*".*::' | 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
 		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.