Commit graph

1498 commits

Author SHA1 Message Date
Alexandre Aubin
1f2da5c26b
Merge branch 'stretch-unstable' into better-handling-of-app-install-and-remove-failures 2019-10-14 19:08:15 +02:00
Alexandre Aubin
5882bf89db Merge branch 'stretch-testing' into stretch-unstable 2019-10-10 00:10:11 +02:00
Alexandre Aubin
2623d38567 Annnnnd Alex was drunk and released an epic stupid bug in stable 2019-10-10 00:06:36 +02:00
Alexandre Aubin
7ecefaf8dc Fixes following tests 2019-10-08 18:42:03 +02:00
Alexandre Aubin
5623689a27 Detect and warn early about unavailable full domain requirement... 2019-10-08 18:38:45 +02:00
Alexandre Aubin
ea1fd71def
Merge pull request #798 from YunoHost/detect-and-warn-early-about-unavailable-full-domain
[fix] Detect and warn early about unavailable full domains...
2019-10-08 18:35:31 +02:00
Alexandre Aubin
c70418c4b2 Fixes following tests 2019-10-08 18:21:04 +02:00
Alexandre Aubin
342fe2d4be Add unit test for full-domain apps 2019-10-08 18:19:50 +02:00
Alexandre Aubin
2642b64af5 Detect and warn early about unavailable full domain requirement... 2019-10-08 16:11:52 +02:00
Luke Murphy
a1822e2f42
Use str instead of strerror (not present)
See https://forum.yunohost.org/t/cant-create-a-user-after-post-intsallation/9190.
2019-10-06 11:25:01 +02:00
Alexandre Aubin
d063348d9b
Merge pull request #795 from YunoHost/improve-permission-interface
Polish group/permissions interface + simplify code
2019-10-04 20:02:35 +02:00
Alexandre Aubin
692ba7c5cd
Merge pull request #814 from YunoHost/spookier-warnings-for-app-install
Spookier warnings for dangerous app install
2019-10-04 19:42:23 +02:00
Alexandre Aubin
d159f7ff07
Misc typo / wording / readability
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-09-28 16:11:44 +02:00
Alexandre Aubin
6aebec4a34 Residual .migrate() -> .run() 2019-09-27 20:37:13 +02:00
Alexandre Aubin
babaf541b6 Decent quality is now at least level 5 2019-09-27 17:42:56 +02:00
Alexandre Aubin
a2ecbb9d8b Make the warning spooky for notworking and thirdparty apps ... 2019-09-27 17:41:09 +02:00
Alexandre Aubin
c0e3d600b2 If we got fed an app url, extract the name of the app to test if we do know it 2019-09-27 17:17:03 +02:00
Alexandre Aubin
ccc49a2b28 Simplify that indentation madness 2019-09-26 16:34:14 +02:00
Alexandre Aubin
9331f44b34 This message about shell command return code is too technical and uninformative. Let's explain what happen, which is that some error occured inside the install script (and details are in the debug log). 2019-09-26 16:33:15 +02:00
Alexandre Aubin
47bdfd8654 Clarify the handling of install script failures... 2019-09-26 16:21:22 +02:00
Alexandre Aubin
274888c79f Better handling of remove failure (and in particular, catch manual interrupts to still perform the rest of the cleaning) 2019-09-26 16:19:43 +02:00
Alexandre Aubin
93d383b957
Merge branch 'stretch-unstable' into improve-permission-interface 2019-09-22 18:38:15 +02:00
Alexandre Aubin
f0e8ef8456
Merge branch 'stretch-unstable' into improve-permission-interface 2019-09-21 12:16:04 +02:00
Alexandre Aubin
545f697df2 When using the legacy adduser function, remove all_users for backward compatibility 2019-09-20 21:56:44 +02:00
Alexandre Aubin
379c28de90
Update src/yunohost/backup.py
Co-Authored-By: Allan Nordhøy <epost@anotheragency.no>
2019-09-20 15:00:31 +02:00
Alexandre Aubin
6ed062b41b app_no_upgrade -> apps_already_up_to_date 2019-09-20 14:49:31 +02:00
Alexandre Aubin
ff2bbb0377 Fix / remove stale i18n strings 2019-09-20 14:49:06 +02:00
Alexandre Aubin
0436c16f91
Merge pull request #779 from YunoHost/tests-for-apps
[enh] Add unit/functional tests for apps
2019-09-17 20:51:02 +02:00
Alexandre Aubin
875c570c6d Check if the upgrade got manually interrupted, c.f. same stuff in app_install 2019-09-16 00:13:41 +02:00
Alexandre Aubin
aa3687ba02 Small trick needed to be able to test chained app upgrades 2019-09-15 02:28:32 +02:00
Alexandre Aubin
a476deb7fb Tweak test conf for easier debugging 2019-09-15 02:28:32 +02:00
Alexandre Aubin
28c73cb336 Implement those remaining tests 2019-09-15 02:28:32 +02:00
Alexandre Aubin
799c68f1a8 Moar tests for apps breaking the system 2019-09-15 02:28:32 +02:00
Alexandre Aubin
3eb089ffc0 Add unit/functional tests for apps 2019-09-15 02:28:32 +02:00
Laurent Peuch
4882754221 [mod] stop apps upgrade if one upgrade fail 2019-09-15 02:27:15 +02:00
Alexandre Aubin
c530325e29 Properly handle the sanity checks right after upgrades (in combination with managing the regular error code...). This is similar to what's done for app_install 2019-09-15 02:22:36 +02:00
Alexandre Aubin
08ecace5ec Here we keep need to keep going and only display an error, otherwise the rest of the file ain't properly cleaned up 2019-09-15 02:21:26 +02:00
Alexandre Aubin
8e6ebd7979 Iteration on sanity checks for app operations 2019-09-15 02:20:01 +02:00
Bram
ef38f5e7b5 [mod] typo
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2019-09-15 02:19:11 +02:00
Bram
889e34888d [mod] typo
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-09-15 02:19:11 +02:00
Laurent Peuch
3130bb59ac [mod] stop apps upgrade if one upgrade fail 2019-09-15 02:19:11 +02:00
Laurent Peuch
930b8378a1 [mod] remove unused variable 2019-09-15 02:19:11 +02:00
Alexandre Aubin
9c383ef06a Make migration more robust to re-runs 2019-09-14 18:21:42 +02:00
Alexandre Aubin
094a2afe1a Simplify permission handling in app_map + add tests for it 2019-09-13 22:45:31 +02:00
Alexandre Aubin
3df6ce17b6 Properly handle all those errors >.> ... 2019-09-13 20:34:30 +02:00
Alexandre Aubin
63fa54171d Ugh we really need to make this raise an exception ... 2019-09-13 20:13:44 +02:00
Alexandre Aubin
732f898773 Small issue when deleting the user 2019-09-13 19:42:15 +02:00
Alexandre Aubin
b995b3254d Remove some unecessary messages when handling primary groups and all_users 2019-09-13 18:41:05 +02:00
Alexandre Aubin
f950378c63 Do not display primary groups by default when running yunohost user group list 2019-09-13 17:39:21 +02:00
Alexandre Aubin
302e755f48 Assume we target the .main permission if it's not given explicitly 2019-09-13 16:50:46 +02:00