Fixed a number of minor English spelling and grammar errors in the messages (for example the word "list" implies plural, so no need to double pluralize by saying "apps list").
It rewrites some parts of the conf regen but try to keep as much as possible
the same logic - to prevent a too big refactoring. The main change is that
configuration file regen is now handle by service_regen_conf directly.
Hooks are now called twice with the following arguments respectively:
* `"pre" $force $pending_dir`: it's time for the script to generate and put
each configuration file to update/remove into `$pending_dir` with the
right directory tree. To remove one, just touch an empty file.
* `"post" $force`: this second time, the script may restart services, fix
permissions, clean, ...
Between this two executions, the service_regen_conf will look for any files
under the `$pending_dir` and safely process them - either create, update or
remove the proper system configuration.
The 'requirements' key allows to specify the Debian packages which must
be installed and their required version. It must be an array of the
package name as the key and its version specifier - for its format, see
yunohost.utils.packages.Specifier - as value. For example:
"requirements": {
"yunohost": ">= 2.4, << 2.5"
}
It introduces a new `yunohost.utils` package which will contain common
utils used by YunoHost actions. It comes with a work in progress `packages`
module with simple methods to retrieve installed version of packages for now.
This quickly adds support for git URL with /tree/ inside in app installation.
It is intended to ease tests of apps which use new manifest format and helpers
for the 2.4 release. An example usage:
$ yunohost app install https://github.com/jeromelebleu/roundcube_ynh/tree/dev
As it will certainly change with the app category refactoring, it is not
documented and should be used with care.
* Do not copy again the restore app script
* Set app folder permissions and properly remove it on failure
* Add a raise_on_error argument to hook_exec
* Review displayed messages