[sword-svn] r2082 - trunk/src/mgr
scribe at www.crosswire.org
scribe at www.crosswire.org
Thu Sep 20 12:28:08 MST 2007
Author: scribe
Date: 2007-09-20 12:28:07 -0700 (Thu, 20 Sep 2007)
New Revision: 2082
Modified:
trunk/src/mgr/installmgr.cpp
Log:
Think I finally fixed the installmgr silliness
Modified: trunk/src/mgr/installmgr.cpp
===================================================================
--- trunk/src/mgr/installmgr.cpp 2007-09-19 21:51:30 UTC (rev 2081)
+++ trunk/src/mgr/installmgr.cpp 2007-09-20 19:28:07 UTC (rev 2082)
@@ -344,7 +344,13 @@
if (entry != module->second.end()) {
SWBuf absolutePath = entry->second.c_str();
SWBuf relativePath = absolutePath;
- relativePath << strlen(mgr.prefixPath);
+ entry = module->second.find("PrefixPath");
+ if (entry != module->second.end()) {
+ relativePath << strlen(entry->second.c_str());
+ }
+ else {
+ relativePath << strlen(mgr.prefixPath);
+ }
SWLog::getSystemLog()->logDebug("***** mgr.prefixPath: %s \n", mgr.prefixPath);
SWLog::getSystemLog()->logDebug("***** destMgr->prefixPath: %s \n", destMgr->prefixPath);
SWLog::getSystemLog()->logDebug("***** absolutePath: %s \n", absolutePath.c_str());
More information about the sword-cvs
mailing list