[tracker/tracker-0.10] libtracker-sparql: Another sed trick to fix vala GIR



commit 44cdc4536fb3c488a24be0dfd7186a03df030ba5
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Mar 29 13:39:06 2011 +0300

    libtracker-sparql: Another sed trick to fix vala GIR
    
    Add scope="true" to all the async function descriptions.

 src/libtracker-sparql/Makefile.am |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/Makefile.am b/src/libtracker-sparql/Makefile.am
index fdce74e..242a9cc 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -67,8 +67,12 @@ Tracker- TRACKER_API_VERSION@.gir: $(lib_LTLIBRARIES) Makefile
 else
 Tracker- TRACKER_API_VERSION@.gir: $(lib_LTLIBRARIES) Makefile
 	if [[ -z `grep tracker_sparql_escape_uri_vprintf $@ |grep introspectable` ]] ; then \
-	  sed -i $@ -e "s/c\:identifier\=\"tracker_sparql_escape_uri_vprintf\"/c\:identifier\=\"tracker_sparql_escape_uri_vprintf\"\ introspectable=\"0\"/g" ; \
+	  sed -i $@ -e "s/c\:identifier\=\"tracker_sparql_escape_uri_vprintf\"/&\ introspectable=\"0\"/g" ; \
         fi
+	if [[ -z `grep scope $ ` ]] ; then \
+	  sed -i $@ -e "s/\"_callback_\"/&\ scope=\"async\"/g" ; \
+        fi
+
 endif
 
 Tracker- TRACKER_API_VERSION@.typelib: Tracker-$(TRACKER_API_VERSION).gir



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]