Commit graph

64 commits

Author SHA1 Message Date
Alexandre Aubin
47f3c00d0c
helpers apt/php: fix typo spotted by tituspijean 2021-12-03 01:00:19 +01:00
Alexandre Aubin
ba489bfc27 helpers: We don't care about the apt_dependencies setting ... it's not used and the info is already stored in the $app-ynh-deps virtual package 2021-11-02 02:02:29 +01:00
Alexandre Aubin
10a0496209
Merge branch 'dev' into lint-helpers 2021-10-12 16:45:57 +02:00
Alexandre Aubin
560162dd96 Sury pinning is managed in the core, c.f. 346728e5 2021-10-07 10:29:03 +02:00
Alexandre Aubin
e563a366ef
helpers apt: Use smarter grep with lookbehind to extract php version from dependency list
Co-authored-by: Florent <florent.fayolle69@gmail.com>
2021-10-07 01:46:09 +02:00
Alexandre Aubin
c9cdfc6b0f Typo :| 2021-10-06 16:56:47 +02:00
Alexandre Aubin
93cc413f4a helpers: lint/reformat with shfmt -bn -i 4 -w $FILE 2021-10-06 16:01:53 +02:00
Alexandre Aubin
13d012bb4f helpers apt: save phpversion in settings even when using php default version 2021-10-06 15:34:26 +02:00
Alexandre Aubin
9ee631c1c4 helpers: Typo in ynh_remove_app_dependencies 2021-10-06 15:16:18 +02:00
Alexandre Aubin
5054397a5a helpers: Add deprecation warning to ynh_add_app_dependencies 2021-10-06 15:11:09 +02:00
Alexandre Aubin
e07e1a95f4 Apply suggestions from code review
Co-authored-by: Kayou <pierre@kayou.io>
2021-10-06 15:00:37 +02:00
Alexandre Aubin
76b60890c6 Propagate changes on other apt/php helpers... 2021-10-06 15:00:18 +02:00
Alexandre Aubin
040be532ad During ynh_install_app_dependencies, if the dependency list contains specific php version stuff, add sury and other tweaks 2021-10-06 14:59:20 +02:00
Alexandre Aubin
76aaaab74e Factorize sury repo configuration into ynh_add_sury 2021-10-06 14:59:06 +02:00
Alexandre Aubin
644cdd41d8 Allow to re-run ynh_install_app_dependencies multiple times 2021-10-06 14:57:59 +02:00
Alexandre Aubin
f84b6535f3
Merge pull request #1167 from Salamandar/fix_helper_doc
helper doc : Fix all doc (mostly)
2021-03-17 15:41:26 +01:00
Alexandre Aubin
ce04570bfd helpers: Simplify manifest path / parsing 2021-03-12 23:18:25 +01:00
e6f3adfa08 helper doc fixes : apt 2021-03-03 11:06:51 +01:00
Kay0u
1d3380415e
add missing getops 2021-02-25 11:17:46 +01:00
Alexandre Aubin
9d0bda548a Do not ynh_die if systemctl action fails, because we don't want to exit in the middle of a remove script ... instead, return a non-zero code which should trigger script failure only if set -eu is enabled 2021-01-31 11:57:34 +01:00
Alexandre Aubin
c56883d027 Gotta explicitly return 0, otherwise the return code of last command is used, which in that case is 1 ... 2021-01-11 14:16:50 +01:00
Alexandre Aubin
6419c2ac64 Don't mess with Sury's pinning 2020-12-24 15:38:39 +01:00
Alexandre Aubin
d243fe76ce
[enh] Better problematic apt dependencies auto-investigation mechanism (#1051)
* [enh] Better problematic apt dependencies auto-investigation mechanism

* Misc tweak / fixes following tests
2020-09-16 16:14:03 +02:00
Alexandre Aubin
ca5f264baf Remove pipe char when trying to re-run apt with dry-run ... Because apt becomes absolutely crazy and make every package installed conflict with weird stuff 2020-09-14 17:06:40 +02:00
Alexandre Aubin
346728e55d Remove the pinning stuff of sury from the helpers, since it's now managed by the regenconf core 2020-08-28 22:31:10 +02:00
ericgaspar
82d59d59be
silence info: wasn't deleted because it doesn't exist. 2020-06-23 10:26:09 +02:00
Alexandre Aubin
653c5fde8f Set sury default pinning to 600 2020-06-06 01:16:54 +02:00
Alexandre Aubin
2408a62059
More accurate grep to avoid mistakenly grepping commented lines... 2020-06-05 16:58:46 +02:00
Alexandre Aubin
03432349d7 Add -o Acquire::Retries=3 to fix some stupid issues happening sometimes 2020-06-03 19:29:32 +02:00
Kay0u
a64dfd5676
A better Pin for sury 2020-05-26 18:17:49 +02:00
Kay0u
6b7f299dc6
Revert "Ugly hack to workaround sury pinning issues when installing dependencies"
This reverts commit fc30d82df5.
2020-05-26 18:12:07 +02:00
Kay0u
7ad9fbd5b9
[fix] helper doc 2020-05-20 15:21:46 +02:00
Alexandre Aubin
fc30d82df5 Ugly hack to workaround sury pinning issues when installing dependencies 2020-05-18 00:41:05 +02:00
Alexandre Aubin
5c8c07b8c9 More cleaning of app install logs: we don't really care about debug for ynh_wait_dpkg_free 2020-05-17 03:24:26 +02:00
Alexandre Aubin
9cbd368dca Tweak apt/dpkg options to avoid the shitload of lines about progress bar stuff in logs 2020-05-14 04:46:18 +02:00
Bram
42bc8c354a
Merge pull request #972 from YunoHost/wget-timeout
Add a timeout to wget in helpers
2020-05-04 14:23:36 +02:00
Alexandre Aubin
d29bf04e7c Add a timeout to wget in helpers 2020-05-03 17:37:33 +02:00
Kayou
843e88c67d
[Epic Fix] ynh_install_app_dependencies 2020-05-02 14:50:00 +02:00
Alexandre Aubin
c04d3c3806
Remove comment about old lines that got replaced 2020-04-29 17:13:47 +02:00
Maniack Crudelis
03379007b4 Update YunoHost version requirements 2020-04-21 14:48:52 +02:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +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
Maniack Crudelis
49d9832f0b Better apt logging 2020-04-11 20:53:16 +02:00
Maniack Crudelis
7b38b064d7 Fixes and enhancements 2020-04-11 01:54:32 +02:00
Kayou
d649fad13e
Merge branch 'stretch-unstable' into update_php_helpers 2020-04-10 00:23:59 +02:00
Maniack Crudelis
b06e8c0f7a
Minor fix to avoid the key to be used if not asked 2020-04-09 23:47:16 +02:00