summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Aillon <caillon@fedoraproject.org>2007-05-26 00:33:52 +0000
committerChristopher Aillon <caillon@fedoraproject.org>2007-05-26 00:33:52 +0000
commit0f9c24b23810b6b2f8e7cff2f7ba855ab400e55d (patch)
tree81312d55258078386c89d22fd7aa549af898c4d9
parent- Update to 2.0.0.4 RC3 (diff)
downloadlibrewolf-fedora-ff-0f9c24b23810b6b2f8e7cff2f7ba855ab400e55d.tar.gz
librewolf-fedora-ff-0f9c24b23810b6b2f8e7cff2f7ba855ab400e55d.tar.bz2
librewolf-fedora-ff-0f9c24b23810b6b2f8e7cff2f7ba855ab400e55d.zip
smarter virtual provides info
-rwxr-xr-xadd-gecko-provides.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/add-gecko-provides.in b/add-gecko-provides.in
index 2b47376..cd35363 100755
--- a/add-gecko-provides.in
+++ b/add-gecko-provides.in
@@ -9,10 +9,13 @@ echo $provides
#
# Now output the stuff we want to add
#
-core_files=`echo $filelist | grep "libxpcom.so" | wc -l`
-devel_files=`echo $filelist | grep "nsISupports" | wc -l`
-if [ $devel_files -gt 0 ]; then
- echo "gecko-devel = @GECKO_VERSION@"
-elif [ $core_files -gt 0 ]; then
- echo "gecko-libs = @GECKO_VERSION@"
+core_files=`echo $filelist | grep "libxpcom\.so" | wc -l`
+devel_files=`echo $filelist | grep "firefox\-xpcom\.pc" | wc -l`
+debug_files=`echo $filelist | grep "libxpcom\.so\.debug" | wc -l`
+if [ $debug_files -eq 0 ]; then
+ if [ $devel_files -gt 0 ]; then
+ echo "gecko-devel = @GECKO_VERSION@"
+ elif [ $core_files -gt 0 ]; then
+ echo "gecko-libs = @GECKO_VERSION@"
+ fi
fi
bgstack15