Re: [sword-devel] Possibility to install arbitrary module versions with InstallMgr

2022-09-29 Thread Troy A. Griffitts
That's one failure point. The download goes to a staging folder. If the 
download completes then any existing installed version module is removed and 
the staging data is copied. There are possible failure points after the 
download. If you are hinting at digest sum checks on the data, no we don't have 
this as a check of the downloaded data-- we continue on by only checking that 
no errors were returned by the download process.

On September 29, 2022 3:30:30 AM GMT+02:00, Hermes Huguet 
 wrote:
>Does libsword assume that a module install or update is successful
>because there was no interruption in connection?
>
>On Tue, Sep 27, 2022 at 4:51 PM Tobias Klein  wrote:
>>
>> Thank you, Troy!
>>
>> Well, it's probably just my developer's mind ... thinking that something 
>> could go wrong with a module update and one may want to revert back to a 
>> previous version.
>>
>> Best regards,
>> Tobias
>___
>sword-devel mailing list: sword-devel@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.___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Possibility to install arbitrary module versions with InstallMgr

2022-09-28 Thread Hermes Huguet
Does libsword assume that a module install or update is successful
because there was no interruption in connection?

On Tue, Sep 27, 2022 at 4:51 PM Tobias Klein  wrote:
>
> Thank you, Troy!
>
> Well, it's probably just my developer's mind ... thinking that something 
> could go wrong with a module update and one may want to revert back to a 
> previous version.
>
> Best regards,
> Tobias
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Possibility to install arbitrary module versions with InstallMgr

2022-09-27 Thread Tobias Klein

Thank you, Troy!

Well, it's probably just my developer's mind ... thinking that something 
could go wrong with a module update and one may want to revert back to a 
previous version.


Best regards,
Tobias

Am 27. September 2022 21:54:22 schrieb "Troy A. Griffitts" 
:
Hi Tobias. Well, adding to the API wouldn't be a significant change there. 
What would be significant is retaining previous versions in the remote 
repository. I doubt we can get people to offer every version of their 
texts. Updates are usually bug fixes and if they are not simply this, we 
usually break out the module with a new name, e.g. the NASB1995 is a new 
module name to preserve the 95 edition, since the latest NASB module has 
translation differences now as it is updated to the 2020 revision. If a 
user wants the previous edition, they can grab the NASB1995.


If a user wants a previous SWORD version of a module, then we've done 
something wrong.


Do you have a particular use case you have found which would benefit from 
allowing previous SWORD versions to be installed?



On September 27, 2022 9:37:03 PM GMT+02:00, Tobias Klein 
 wrote:

Hi Troy,

As I am thinking about module upgrade support for Ezra Bible App (currently 
not implemented) I am also (once more) asking myself why there isn't an API 
for installing arbitrary module versions with InstallMgr.


The two additional use cases that I would like to have in the SWORD engine are:

- Add a function to list the module versions for a given module and a given 
repository

- Add a version parameter to the installModule function

Would it be much effort to implement this in SWORD?

Are there any existing design constraints that make it hard to add this?

Best regards,
Tobiassword-devel mailing list: sword-devel@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.


___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Possibility to install arbitrary module versions with InstallMgr

2022-09-27 Thread Troy A. Griffitts
Hi Tobias. Well, adding to the API wouldn't be a significant change there. What 
would be significant is retaining previous versions in the remote repository. I 
doubt we can get people to offer every version of their texts. Updates are 
usually bug fixes and if they are not simply this, we usually break out the 
module with a new name, e.g. the NASB1995 is a new module name to preserve the 
95 edition, since the latest NASB module has translation differences now as it 
is updated to the 2020 revision. If a user wants the previous edition, they can 
grab the NASB1995.

If a user wants a previous SWORD version of a module, then we've done something 
wrong.

Do you have a particular use case you have found which would benefit from 
allowing previous SWORD versions to be installed?

On September 27, 2022 9:37:03 PM GMT+02:00, Tobias Klein  
wrote:
>Hi Troy,
>
>As I am thinking about module upgrade support for Ezra Bible App (currently 
>not implemented) I am also (once more) asking myself why there isn't an API 
>for installing arbitrary module versions with InstallMgr.
>
>The two additional use cases that I would like to have in the SWORD engine are:
>
>- Add a function to list the module versions for a given module and a given 
>repository
>- Add a version parameter to the installModule function
>
>Would it be much effort to implement this in SWORD?
>
>Are there any existing design constraints that make it hard to add this?
>
>Best regards,
>Tobias
>
>___
>sword-devel mailing list: sword-devel@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.___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Possibility to install arbitrary module versions with InstallMgr

2022-09-27 Thread Greg Hellings
The biggest problem with that would seem to be that the server only keeps
the current version. It doesn't keep older versions in place (or, at least
it hasn't in the past)

--Greg

On Tue, Sep 27, 2022, 14:37 Tobias Klein  wrote:

> Hi Troy,
>
> As I am thinking about module upgrade support for Ezra Bible App
> (currently not implemented) I am also (once more) asking myself why
> there isn't an API for installing arbitrary module versions with
> InstallMgr.
>
> The two additional use cases that I would like to have in the SWORD
> engine are:
>
> - Add a function to list the module versions for a given module and a
> given repository
> - Add a version parameter to the installModule function
>
> Would it be much effort to implement this in SWORD?
>
> Are there any existing design constraints that make it hard to add this?
>
> Best regards,
> Tobias
>
> ___
> sword-devel mailing list: sword-devel@crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page