On Mon, 23 Jul 2012, Stephen Warren wrote:

Uggh. Why can't libconcord parse the file without being attached to the
remote; the file format should be completely standalone and parse-able
"offline".

Attached is a patch against zwave_work_branch to remove the dependency on init_concord() being called before parsing a file.

Scott
Remove dependency from OperationFile that init_concord() be called beforehand.

Signed-off-by: Scott Talbert <s...@techie.net>

Index: operationfile.cpp
===================================================================
RCS file: /cvsroot/concordance/concordance/libconcord/Attic/operationfile.cpp,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 operationfile.cpp
--- operationfile.cpp   22 Mar 2012 08:50:20 -0000      1.1.2.2
+++ operationfile.cpp   28 Jul 2012 18:51:57 -0000
@@ -230,11 +230,9 @@ int OperationFile::ReadAndParseOpFile(ch
        }
 
        bool is_zip = false;
-       if (is_z_remote()) {
-               if (!ReadZipFile(file_name)) {
-                       debug("Is zip");
-                       is_zip = true;
-               }
+       if (!ReadZipFile(file_name)) {
+               debug("Is zip");
+               is_zip = true;
        }
 
        if (!is_zip) {
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to