<div dir="ltr"><div>Currently the engine does not intentionally preserve any information about where a module comes from. This is why, for a single installer, it cannot handle having parallel installs of the same module from different sources (e.g. you can&#39;t have both CrossWire KJV and your own homegrown KJV in parallel without giving your own a different module name).</div><div><br></div><div>There&#39;s nothing stopping an application from creating different local repos, one for each upstream, and then combining the two using its own logic. However, this isn&#39;t something the library currently supports. The fact that you can reverse engineer its source, at present, is only because none of the main repositories duplicates module identifiers from any other repositories. However there is nothing, technically speaking, that prevents this. Thus, module pedigree is not, necessarily, a deterministic thing.</div><div><br></div><div>--Greg<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 27, 2019 at 2:28 PM &lt;<a href="mailto:contact@tklein.info">contact@tklein.info</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Using the SWORD API, is there an easy way to determine the  <br>
remote/source repository a module is coming from?<br>
<br>
I haven&#39;t found anything in the SWModule class or anywhere else.<br>
<br>
This would be my approach without any API method:<br>
1) Get the config entry &quot;PrefixPath&quot; using  <br>
SWModule::getConfigEntry(&quot;PrefixPath&quot;). This returns something like  <br>
this:<br>
/home/tobi/.sword/installMgr/20151110161300/<br>
2) The last part of the path above is the &quot;id&quot; of the source repository<br>
3) Looking up ~/.sword/installMgr/masterRepoList.conf I can find the  <br>
mapping between the repo id and the actual repository name from a line  <br>
like this one: 20151110161300=FTPSource=eBible.org|<a href="http://ftp.ebible.org" rel="noreferrer" target="_blank">ftp.ebible.org</a>|/sword<br>
<br>
Would it make sense to provide a method in the SWModule or InstallMgr  <br>
class to easily get this information?<br>
This would be useful meta information when showing an about dialog for  <br>
a module and I also see other use cases.<br>
<br>
Best regards,<br>
Tobias<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div>