Commit graph

30 commits

Author SHA1 Message Date
Josue-T
cdd510642f Set equiv as base dependance (#515) 2018-08-25 19:45:55 +02:00
Bram
deec04e6d5
Merge pull request #475 from YunoHost/remove_qq
[enh] We need a fucking log
2018-05-17 05:30:45 +02:00
Bram
923ce03d0b
Merge pull request #439 from YunoHost/compatibility_levels
[fix] Remove warning from equivs
2018-05-16 18:50:53 +02:00
Maniack Crudelis
2bc5e82b9c
[enh] We need a fucking log
Die quiet ! Die !!!
2018-05-15 19:51:13 +02:00
Josue-T
ab2b7db0cf Trigger error if app dependency install fails (Redmine 1006) + allow for 'or' in dependencies (#381)
* Solve issue https://dev.yunohost.org/issues/1006
I purpose this change to improve the helper 'ynh_install_app_dependencies'.
Before this change if the dependences are not installable the install didn't fail. By these change the helper generate an error and the install stop.

* Get the error if apt fail
* Remove old change
* Add dependence choice
2018-04-13 14:31:36 +02:00
Alexandre Aubin
af22474a50 Add some [internal] flags in the comment to hide a few helpers from autodoc 2018-03-10 19:01:37 +01:00
Maniack Crudelis
8652435d8a
[fix] Remove warning from equivs 2018-03-08 18:53:21 +01:00
JimboJoe
3fbcd1f110
Merge branch 'unstable' into default_version 2018-01-11 14:19:47 +01:00
Maniack Crudelis
3a3ec7d9b5 [fix/enh] Use local variables 2017-12-17 20:26:52 +01:00
Maniack Crudelis
42f9c8fc18
[fix] Who said I didn't check my code !? 2017-12-11 17:25:28 +01:00
Maniack Crudelis
2685c42ac6
[fix] Only for JimboJoe ;) 2017-12-11 17:23:26 +01:00
Maniack Crudelis
4276aebfa3
[enh] Default version number for ynh_install_app_dependencies 2017-12-10 23:38:09 +01:00
Maniack Crudelis
4f62eb5320
Fix upgrade fake package 2017-12-02 16:44:47 +01:00
Maniack Crudelis
3320aee86e [enh] New helper autopurge
Add an autoremove with purge.
Some deb packages, like transmission let a lot of shit behind itself.
In case of remove then install, transmission doesn't work anymore.
2017-06-17 19:22:10 +02:00
Maniack Crudelis
de3a0b4f69 [fix] ynh_install_app_dependencies uses grep instead of python (#313)
Proposition to discuss
2017-06-09 00:46:36 +02:00
ljf (zamentur)
d3eeb4bbc7 [enh] Refactor backup management to pave the way to borg (#275)
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* Adding skeleton for remaining tests to write
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* Adding skeleton for remaining tests to write
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* [fix] Replay e1a507 deleted by rebase
* [fix] ynh_restore helper
* Renaming 'hooks' terminology to 'system' where it makes sense
* Propagating new --system/--ignore-system to actionmap
* Adding more tests + clarifying some functions and messages
* Factorize out the definition and validation of backup/restore targets
* Add missing key
* Use list comprehension instead of dirty loops
* [enh] Add docstring in BackupManager
* [enh] Add docstring on BackupMethod(s)
* [fix] Remove deadcode
* [fix] Remove debug message
* [enh] Add comments on RestoreManager
* [enh] Add comments on backup constants
* Adding a proper report/result for each backup target
* Skipping tests not implemented yet
* Fixing little mistake from merging
* [fix] Support different fs or archivemount error
* [enh] Backup helpers readability
* [fix] Copy backup method
* [fix] Deprecated warning always displayed
* [enh] Retrieve info.json file inside tar.gz
* Trying to reorganize methods with sections for readability
* [enh] Support archivemount failure
* [fix] Missing env var for system part restore helpers
* Clarifying disk usage / free space computation
* [enh] Refactoring around backup set_targets()
* Clarifying structure of backup_create and backup_restore
* Move RestoreManager between BackupManager and BackupMethods
* [fix] Missing locales
* [fix] System part restore if archivemount failure
* [enh] Extract all conf instead of specific code
* [fix] Other output directory (compressed archive)
* [enh] Add test for uncompressed backup
* [fix] Compressed backup in an existing output directory
* [fix] Return size for retro-compatibility
* [fix] Mountpoint check aborting script when called with -eu
* [fix] Avoid failure test with set -eu
* [fix] locale strings missing/bad arguments
* Check free space before mount
* [fix] ynh_restore_helpers with existing archive path
* Adding skeletons for moar tests
* Fixing some weird bug in _get_archive_path
* Adding a regen-conf at the end of system restore
* Adding tests of system restore from 2.4
* Have a class dedicated to target management
* Cleaning tests
* Misc formatting
* More meaningful variable names inside app restore
* [fix] can't call source ../settings/scripts/_common.sh in app backup
* [fix] ynh_install_app_dependencies is not compatible with readonly mount
* [fix] Remove temporary file
2017-06-02 13:41:16 +02:00
ljf (zamentur)
c954429cca [fix] Avoid to remove a apt package accidentally (#292)
* [fix] Avoid to remove a apt package accidentally
* [fix] No need --no-remove option with apt update cmd
2017-04-06 15:34:17 +02:00
Alexandre Aubin
5b9092d6df Rename ynh_app_dependencies to ynh_install_app_dependencies 2017-03-17 04:07:17 +01:00
Maniack Crudelis
5f3fcefc88 Prevent to rewrite the previous control file 2017-03-16 18:35:57 +01:00
Maniack Crudelis
2bb32c26b6 Add app setting 2017-03-14 18:05:28 +01:00
Maniack Crudelis
5fcb8cd439 Remove use of deprecated helper 2017-03-14 16:34:07 +01:00
Maniack Crudelis
4dfde86e1a Fix ynh_remove_app_dependencies too... 2017-03-02 23:57:02 +01:00
Maniack Crudelis
7ade94e7e3 Fix ynh_app_dependencies
Double // pour remplacer toutes les occurrences de _
Ajout d'une virgule entre les dépendances.
2017-03-02 23:55:28 +01:00
Maniack Crudelis
b062c014b0 Restore use of subshell 2017-02-09 18:35:18 +01:00
Maniack Crudelis
0989e27d58 Update package 2017-02-09 17:22:24 +01:00
Maniack Crudelis
d98b5e036c [enh] New helpers for equivs use
- `ynh_package_remove` and `ynh_package_autoremove` were just moved up.
- Small modifications on `ynh_package_install_from_equivs`. Just added some comments and used popd instead of cd.
- Added `ynh_app_dependencies` to manage easily installation of dependencies with equivs
- And `ynh_remove_app_dependencies` to remove them.
2017-02-08 19:23:27 +01:00
Jérôme Lebleu
8a587c7e6d [enh] Add ynh_apt wrapper helper and make use of it 2016-05-21 11:20:25 +02:00
Jérôme Lebleu
e4ec67d727 [fix] Improve control file management in equivs helper 2016-04-04 20:18:09 +02:00
Jérôme Lebleu
dc3e07c4bd [fix] Check if the package is actually installed in equivs helper 2016-04-03 11:28:53 +02:00
Julien Malik
5b7e16384e [enh] move /usr/share/yunohost/apps/helpers to /usr/share/yunohost/helpers since it became of more general use 2016-03-12 00:12:59 +01:00
Renamed from data/apps/helpers.d/package (Browse further)