[strigi] add awol patch
Rex Dieter
rdieter at fedoraproject.org
Mon Jan 9 16:30:44 UTC 2012
commit 1d70ef7b76c0ea7372d497ada651867548fe9259
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Mon Jan 9 10:30:36 2012 -0600
add awol patch
strigi-0.7.7-xpmfix.patch | 64 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/strigi-0.7.7-xpmfix.patch b/strigi-0.7.7-xpmfix.patch
new file mode 100644
index 0000000..5a61cd3
--- /dev/null
+++ b/strigi-0.7.7-xpmfix.patch
@@ -0,0 +1,64 @@
+commit 35cf4a4818a0d1bc7cda07e29f271360e06443a0
+Author: Weng Xuetian <wengxt at gmail.com>
+Date: Mon Dec 12 09:12:35 2011 +0000
+
+ Fix xpm and xbm index.
+
+ REVIEW: 103368
+
+diff --git a/plugins/lineplugins/xpmlineanalyzer.cpp b/plugins/lineplugins/xpmlineanalyzer.cpp
+index 980b2f7..c87a071 100644
+--- a/plugins/lineplugins/xpmlineanalyzer.cpp
++++ b/plugins/lineplugins/xpmlineanalyzer.cpp
+@@ -65,7 +65,7 @@ XpmLineAnalyzer::handleLine(const char* data, uint32_t length) {
+ uint32_t i = 0;
+ // we have found the line which should contain the information we want
+ ready = true;
+- // read the height
++ // read the width
+ uint32_t propertyValue = 0;
+ i++;
+ while (i < length && isdigit(data[i])) {
+@@ -76,9 +76,9 @@ XpmLineAnalyzer::handleLine(const char* data, uint32_t length) {
+ if (i >= length || data[i] != ' ')
+ return;
+
+- analysisResult->addValue(factory->heightField, propertyValue);
++ analysisResult->addValue(factory->widthField, propertyValue);
+
+- // read the width
++ // read the height
+ propertyValue = 0;
+ i++;
+ while (i < length && isdigit(data[i])) {
+@@ -89,7 +89,7 @@ XpmLineAnalyzer::handleLine(const char* data, uint32_t length) {
+ if (i >= length || data[i] != ' ')
+ return;
+
+- analysisResult->addValue(factory->widthField, propertyValue);
++ analysisResult->addValue(factory->heightField, propertyValue);
+
+ // read the number of colors
+ propertyValue = 0;
+@@ -103,7 +103,7 @@ XpmLineAnalyzer::handleLine(const char* data, uint32_t length) {
+ return;
+
+ analysisResult->addValue(factory->numberOfColorsField, propertyValue);
+- analysisResult->addValue(factory->typeField, "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Image");
++ analysisResult->addValue(factory->typeField, "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#RasterImage");
+ }
+ bool
+ XpmLineAnalyzer::isReadyWithStream() {
+diff --git a/plugins/throughplugins/xbmthroughanalyzer.cpp b/plugins/throughplugins/xbmthroughanalyzer.cpp
+index e926e84..e3f35cc 100644
+--- a/plugins/throughplugins/xbmthroughanalyzer.cpp
++++ b/plugins/throughplugins/xbmthroughanalyzer.cpp
+@@ -145,7 +145,7 @@ XbmThroughAnalyzer::connectInputStream(InputStream* in) {
+ }
+ }
+
+- analysisResult->addValue(factory->typeField, "http://www.semanticdesktop.org/ontologies/nfo#Cursor");
++ analysisResult->addValue(factory->typeField, "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Cursor");
+
+ return in;
+ }
More information about the scm-commits
mailing list