URL:
<http://gna.org/patch/?1657>
Summary: Get the dependencies of an add-on installed
together with the add-on
Project: Battle for Wesnoth
Submitted by: faabumc
Submitted on: Saturday 05/01/2010 at 12:45
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The attached patch allows the automatic selection of all dependencies listed
for an add-on to be checked against the installed add-on. All the
dependencies that are not installed yet are put in a list and proposed to the
user for installation (in a new dialog window). The user has the possibility
to install them or not. Dependencies of dependencies are checked too and a
list is proposed for each dependencies.
Installed add-ons that are dependencies of the selected add-on will not be
checked for upgrade to a newer version.
The case of circular dependencies is covered as the add-on is installed
before the dependencies are checked and the list of installed add-ons is
refreshed before checking the dependencies.
The dependency check is run when installing a new add-on, when upgrading an
already installed add-on and when upgrading all installed add-ons.
Currently the patch is working for the installation of add through the
interface in the game. Hence the wesnoth_addon_manager is not modified. The
way I see it is that the installation through the interface in the game is
for end user and should give more support, while the installation through
python script is more for developers and requires more flexibility.
Tested case (on a server running on localhost):
- an add-on with no dependency
- an add-on with a dependency that is not installed
- an add-on with an installed dependency
- two add-ons having a circular dependency
- an add-on with a dependency that has a dependency (all not installed)
- an add-on with a dependency that has a dependency (the first dependency not
being installed)
- an add-on with a dependency that has a dependency (the second dependency
not being installed)
- an add-on that has a dependency that is not present (no dialog displayed)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Saturday 05/01/2010 at 12:45 Name: addon-dependency.diff Size: 13kB
By: faabumc
Patch generated against svn rev. 42275
<http://gna.org/patch/download.php?file_id=9100>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1657>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs