[sword-devel] Question regarding InstallMgr
Troy A. Griffitts
scribe at crosswire.org
Thu Dec 8 16:28:29 EST 2022
Hi Paul,
Have a look at the command line interface for installmgr here.
https://crosswire.org/svn/sword/trunk/utilities/installmgr.cpp
On December 8, 2022 1:50:48 PM MST, P Mosier <paladin1 at sdf.org> wrote:
>Hello,
>
>I am trying to figure out what the appropriate steps to take are for programmatically installing a module through FTP. Looking through the backend codebase, it seems like there are some configuration settings that have to be initialized in SWMgr order for InstallMgr::installModule to work. However, tracking this down has eluded me as InstallMgr never seems to be set up and called the same way twice.
>
>I have this as a simple example:
>
> sword::SWMgr swrd;
> sword::InstallSource is("FTP");
> is.source = "ftp.crosswire.org";
> is.directory = "/pub/sword";
>
> sword::InstallMgr im;
> im.installModule(&swrd, 0, "KJVA", &is);
>
>The call to installModule segfaults at this line:
>
> module = mgr.config->getSections().find(modName);
>
>I recognize it might be related to my own environment. This is the entire content of my /etc/sword:
>[Install]
>DataPath=/usr/share/sword/
>
>Does someone have an idea for what I'm missing, or an example to direct me to so I can get a better handle on this area of code?
>
>Thanks,
>- Paul M
>
>_______________________________________________
>sword-devel mailing list: sword-devel at crosswire.org
>http://crosswire.org/mailman/listinfo/sword-devel
>Instructions to unsubscribe/change your settings at above page
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20221208/9f575f9f/attachment.htm>
More information about the sword-devel
mailing list