aboutsummaryrefslogtreecommitdiffstats
path: root/gi-find-deps.sh.in
diff options
context:
space:
mode:
authorFunda Wang <fwang@mageia.org>2013-01-20 14:47:06 +0000
committerFunda Wang <fwang@mageia.org>2013-01-20 14:47:06 +0000
commitd020fc5cc685db3b8db9c9bd7caad2e75a06e3f4 (patch)
tree5e217a43c29b41928906772c172e3aab605dc8b9 /gi-find-deps.sh.in
parentd47b143a1bf832d4d429e39f3afd72484ca228bf (diff)
downloadrpm-setup-d020fc5cc685db3b8db9c9bd7caad2e75a06e3f4.tar
rpm-setup-d020fc5cc685db3b8db9c9bd7caad2e75a06e3f4.tar.gz
rpm-setup-d020fc5cc685db3b8db9c9bd7caad2e75a06e3f4.tar.bz2
rpm-setup-d020fc5cc685db3b8db9c9bd7caad2e75a06e3f4.tar.xz
rpm-setup-d020fc5cc685db3b8db9c9bd7caad2e75a06e3f4.zip
fix bug#8757, gi-find-deps.sh incorrectly match 'imports.github'1.167
Diffstat (limited to 'gi-find-deps.sh.in')
-rwxr-xr-xgi-find-deps.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gi-find-deps.sh.in b/gi-find-deps.sh.in
index e8a5785..a377d5f 100755
--- a/gi-find-deps.sh.in
+++ b/gi-find-deps.sh.in
@@ -59,13 +59,13 @@ function find_requires {
while read file; do
case $file in
*.js)
- for module in $(grep -h -P -o "imports.gi.([^\s'\";]+)" $file | grep -v "imports.gi.version" | sed 's,imports.gi.,,'); do
+ for module in $(grep -h -P -o "imports\.gi\.([^\s'\";]+)" $file | grep -v "imports\.gi\.version" | sed 's,imports.gi.,,'); do
split_name_version $module
print_req_prov
done
;;
*.py)
- for module in $(grep -h -P "from gi.repository import (\w+)" $file | 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+)" $file | sed 's:#.*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+as\s+\w+::g' -e 's:\s*,\s*: :g'); do
split_name_version $module
print_req_prov
echo "python-gi >= 2.90.2"