Commit graph

103 commits

Author SHA1 Message Date
Alexandre Aubin
b98dd8585b
Merge pull request #1116 from YunoHost/enh-python3
Python2 -> Python3
2021-01-19 23:06:57 +01:00
Kayou
5c7e503316
Typo 2021-01-19 11:20:07 +01:00
Kay0u
090cd0b13a
copy the behavior of the old ynh_check_app_version_changed helper 2021-01-13 11:34:41 +01:00
Kay0u
2ace0741c4
set ynh_check_app_version_changed as deprecated 2021-01-12 13:53:38 +01:00
Alexandre Aubin
c43a51ba30
Merge branch 'dev' into enh-python3 2021-01-10 18:31:19 +01:00
Alexandre Aubin
a665c702d0 Annnd of course we have references to python2 in bash stuff and other misc scripts 2021-01-10 02:07:24 +01:00
Alexandre Aubin
30dde208dc Fix ynh_replace_vars in case var is define but empty 2021-01-09 23:57:09 +01:00
Alexandre Aubin
8f1b05f3cf [fix] Prevent info from being redacted (because of foobar_key=) by the logging system 2021-01-09 18:08:23 +01:00
Kayou
7a0aa851a6
Keep helpers consistent 2020-11-26 11:00:24 +01:00
Alexandre Aubin
144f98ad44
Gotta define a default value to avoid unbound variable 2020-11-10 17:09:23 +01:00
Alexandre Aubin
ea685c46d4
Merge pull request #1055 from YunoHost/add-config-helper
Add ynh_add_config helper
2020-09-24 21:25:34 +02:00
Alexandre Aubin
ebe6c8a5f2
Apply suggestions from code review (comment indentation)
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 21:15:59 +02:00
Alexandre Aubin
3b94b23516
Update data/helpers.d/utils
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 20:37:45 +02:00
Alexandre Aubin
1e79e50d68 Add ynh_add_config helper 2020-09-20 20:01:55 +02:00
Augustin Trancart
ffcd0e33ac Fix ynh_app_upstream_version : restore ability to read manifest
The documentation was saying A, the code was doing B, and calling
functions were expecting both A and B (see
ynh_check_app_version_changed). So this commit aims at making
everyone agree, by matching usage.
2020-09-19 15:29:38 +02:00
Josue-T
7c6748e928
Merge branch '4.1' into abort_if_up_to_date_manifest 2020-08-18 21:07:30 +02:00
Alexandre Aubin
55036fad2c Calling ynh_print_err in case of error didn't work, and we probably want a ynh_die here 2020-06-04 01:18:52 +02:00
Alexandre Aubin
3d66eaec01 Retry wget on non-critical failures to try to avoid tmp dns issues 2020-06-04 00:48:18 +02:00
Alexandre Aubin
d29bf04e7c Add a timeout to wget in helpers 2020-05-03 17:37:33 +02:00
Josué Tille
95b7885890
Merge remote-tracking branch 'upstream/stretch-unstable' into abort_if_up_to_date_manifest 2020-05-02 11:22:22 +02:00
Alexandre Aubin
acba1c4bc8
Comment about why not using ynh_die 2020-05-02 02:13:09 +02:00
Alexandre Aubin
e9f359e5f0 Call exit 1 directly instead of ynh_die to avoid a full arg parse just to exit.. 2020-04-30 05:14:29 +02:00
Maniack Crudelis
03379007b4 Update YunoHost version requirements 2020-04-21 14:48:52 +02:00
Maniack Crudelis
6fb1e62a4c Clean getopts arguments 2020-04-20 21:00:45 +02:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +02:00
Maniack Crudelis
e64eb3478e Unfold AND OR 2020-04-20 15:24:07 +02:00
Maniack Crudelis
3442ab5b80 Add internal flags 2020-04-20 15:21:11 +02:00
Maniack Crudelis
b0398ae6dc Use long arguments instead of short ones 2020-04-20 15:20:31 +02:00
Maniack Crudelis
57061b8e1d Unfold if-then when more than one line 2020-04-19 20:31:06 +02:00
Maniack Crudelis
80964a1312 Standardize tabulations 2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17 Replace declare -Ar by local A for args_array 2020-04-19 19:10:39 +02:00
yalh76
9389f4669c
simplification 2020-04-16 14:42:59 +02:00
Josué Tille
ceeb34f68e
Use 'dpkg --compare-versions' 2020-04-15 15:52:22 +02:00
Josué Tille
d947724b70
Fix typo 2020-04-15 12:11:51 +02:00
Josué Tille
5315807ea7
Cleanup comment 2020-04-14 14:04:26 +02:00
Josué Tille
17e8bdedf6
Rename heper 2020-04-14 14:03:04 +02:00
Josué Tille
fec5d3d084
Rename variable 2020-04-14 14:01:28 +02:00
Josué Tille
3d51e235e8
Add comments 2020-04-14 14:01:22 +02:00
Maniack Crudelis
3484f73506
Clean and syntax 2020-04-14 12:35:35 +02:00
Josué Tille
4c5edb533a
Merge branch 'stretch-unstable' into abort_if_up_to_date_manifest 2020-04-13 17:43:47 +02:00
Josué Tille
640a467280
Add helper ynh_compare_package_version 2020-04-13 16:59:32 +02:00
Josué Tille
58cce48195
Export old and new version in environnement 2020-04-11 23:02:05 +02:00
Alexandre Aubin
ff4f644cd0 Fix possible security issue with these cookie files 2020-03-28 21:21:23 +01:00
Jimmy Monin
e6481b156f Persist cookies between multiple ynh_local_curl calls for the same app 2020-02-29 22:07:45 +01:00
Alexandre Aubin
4e0dbe3134 Improve ynh_secure_remove to detect empty args instead of miserably saying 'Avoid deleting .' 2019-11-16 15:46:23 +01:00
Alexandre Aubin
717ec04f54 Move debug log dump from ynh_exit_properly to the core after failed app operation 2019-11-04 20:20:12 +01:00
Alexandre Aubin
7e99541064 Fix legit variable getting caught as an info to be redacted by the core 2019-07-18 18:16:46 +02:00
Alexandre Aubin
46310dbb6c Misc fixes in helpers comments to fix/improve autogenerated doc 2019-07-11 22:51:41 +02:00
Alexandre Aubin
6cdffe77a7
Merge pull request #687 from YunoHost/crash_debugger
Dump ynh log if an app script fails
2019-05-22 17:42:58 +02:00
Alexandre Aubin
6376b05b60 Add a small tempo to avoid the next message being mixed up with other DEBUG messages 2019-05-18 19:29:18 +02:00