Jérôme Lebleu
7a87fa7ebc
[enh] Implement the intersection of package version SpecifierSet class
2016-04-25 12:17:10 +02:00
Jérôme Lebleu
86e10064e0
[fix] Correct argument index in __repr__ of utils.packages classes
2016-04-25 11:55:49 +02:00
Jérôme Lebleu
d280a08cee
[enh] Implement the union of package version Specifier class
2016-04-25 11:18:08 +02:00
Jérôme Lebleu
3e1f9d223b
[doc] Add documentation to contains methods of Specifier/SpecifierSet
2016-04-25 11:13:01 +02:00
Jérôme Lebleu
afda4a9c90
[enh] Implement the intersection of package version Specifier class
2016-04-25 10:58:19 +02:00
Jérôme Lebleu
55debefd56
[fix] Call regen-conf only once passing a list in domain_add/remove
2016-04-24 22:15:29 +02:00
Moul
55f4ff8d69
[fix] domains creation: regen_conf() were called with an old name of variable.
2016-04-24 00:21:26 +02:00
Jérôme Lebleu
e0ea752f6b
[fix] Copy data without stat when processing regen conf file
2016-04-22 15:30:35 +02:00
Jérôme Lebleu
689b390342
[fix] Restore current_host and use only one backup path for it
2016-04-22 14:54:41 +02:00
Jérôme Lebleu
4912a2afae
[fix] Init LDAP with package installation to fix ynh post-install
2016-04-21 22:59:36 +02:00
Jérôme Lebleu
7d2e7cb5e2
[fix] Get pending conf for all services if no one is provided
2016-04-21 21:57:35 +02:00
Jérôme Lebleu
cdf3c13bf5
[enh] Add a dry-run option for service_regen_conf
2016-04-19 20:52:45 +02:00
Jérôme Lebleu
26adf05042
[fix] Ensure that pending conf file is deleted after it's applied
2016-04-19 20:40:48 +02:00
Jérôme Lebleu
c81393425a
[fix] Define common hooks arguments once in service_regen_conf
2016-04-19 20:10:02 +02:00
Jérôme Lebleu
b4cbe19865
[enh] Use more precise keys in service_regen_conf output
2016-04-19 11:42:56 +02:00
Jérôme Lebleu
d24cd494f3
[fix] Update package first install and call some conf_regen hooks with init
2016-04-16 19:32:18 +02:00
Jérôme Lebleu
13a649b6ef
[enh] Append coma-separated successful conf changes to post conf_regen
2016-04-16 17:35:16 +02:00
Jérôme Lebleu
9229210538
[enh] Also show diff as needed with --list-pending in service_regen_conf
2016-04-11 20:42:21 +02:00
Jérôme Lebleu
a06a753fb6
[enh] Allow to list pending conf only in service_regen_conf
2016-04-11 19:03:48 +02:00
Jérôme Lebleu
de04028309
[fix] Keep only pending conf in conf regen
2016-04-11 19:01:12 +02:00
Jérôme Lebleu
eecf03ffbc
[enh] Allow to show the diff between conf in service_regen_conf
2016-04-11 18:50:45 +02:00
Jérôme Lebleu
2309405e98
[enh] Refactor the conf regen for better conflicts handle
...
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.
2016-04-11 17:11:41 +02:00
Jérôme Lebleu
3ed502894c
[fix] Skip hidden and temp files in hook_list
2016-04-10 19:20:40 +02:00
Jérôme Lebleu
b053ba6ac1
Merge branch 'unstable' into regen-conf-enh
2016-04-10 17:01:33 +02:00
Jérôme Lebleu
c09e322d24
[fix] Use new service_regen_conf method name
2016-04-10 16:57:09 +02:00
Jérôme Lebleu
a26d921c0c
[fix] Formatting 'args' in hook_callback is useless
2016-04-10 16:50:39 +02:00
Jérôme Lebleu
cf077a50aa
[enh] Add pre/post script execution callbacks to hook_callback
2016-04-10 16:48:46 +02:00
Jérôme Lebleu
a7657c1a39
[ref] Deprecate and rename regenconf action to regen-conf
2016-04-10 10:42:30 +02:00
Jérôme Lebleu
a948be035a
[i18n] Rename app_requirements_failed err named variable
2016-04-08 22:44:31 +02:00
Jérôme Lebleu
0339d8160d
[fix] Remove ending comma in backup.py
2016-04-04 20:18:44 +02:00
Jérôme Lebleu
704151f5eb
[fix] Move imports at the top in backup.py
2016-03-28 22:11:46 +02:00
Jérôme Lebleu
8a44179d00
[fix] Regenerate SSOwat conf after apps restoration
2016-03-28 22:07:59 +02:00
Jérôme Lebleu
bba6ec8cfb
[fix] Execute backup/restore app scripts from the backup dir (bugfix #139 )
2016-03-28 21:55:07 +02:00
Jérôme Lebleu
de08c14aa1
[enh] Allow to set script execution directory in hook_exec
2016-03-28 21:49:11 +02:00
Jérôme Lebleu
d11dd38e42
Merge branch 'testing' into unstable
...
This fixes DynDNS update.
2016-03-27 16:54:13 +02:00
Jérôme Lebleu
c99d56f2d5
Merge branch 'stable' into testing
...
This fixes DynDNS update.
2016-03-27 16:52:41 +02:00
opi
394f0498a5
[enh] Use named arguments for user_unknown string.
2016-03-27 16:41:54 +02:00
opi
4cabb2f7f9
[enh] Use named arguments with m18n.
2016-03-27 15:56:41 +02:00
opi
468199c78f
[enh] Use named arguments when calling m18n in service.py
2016-03-27 12:48:48 +02:00
opi
7999293438
[enh] Display hook path on error message.
2016-03-27 11:26:41 +02:00
opi
f176c3061e
[enh] Better message during service regenconf.
2016-03-27 11:26:41 +02:00
Jérôme Lebleu
8114de167b
[enh] Call app remove script if installation fails
2016-03-25 17:46:38 +01:00
opi
4833b6b2b2
[enh] Use dedicated app list domain.
2016-03-23 08:53:44 +01:00
opi
159fd9af11
[fix] Use only dyndns.yunohost.org domain.
2016-03-22 21:59:27 +01:00
opi
d07d8e835a
[enh] Add --installed and --with-backup to app_list action (wip #227 )
2016-03-16 20:18:27 +01:00
opi
b6ee72e412
[enh] Add diagnosis function. #39
2016-03-12 23:33:30 +01:00
Jérôme Lebleu
fba14e55df
[enh] Introduce new 'requirements' manifest key ( close #113 )
...
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"
}
2016-03-08 22:58:47 +01:00
Jérôme Lebleu
cc4dc54ed3
[enh] Implement package version specifier and use it for min_version
2016-03-08 21:52:45 +01:00
Julien Malik
4fd7a69d68
[fix] use ip6.yunohost.org instead of ipv6.yunohost.org (less connectivity issues)
2016-03-08 18:59:09 +01:00
Julien Malik
ec912d5074
[fix] Protect against empty files
2016-03-08 17:38:29 +01:00