Commit graph

121 commits

Author SHA1 Message Date
Alexandre Aubin
8b08de665a Add util functions to extract network interfaces and gateway 2018-06-13 19:39:56 +02:00
Alexandre Aubin
18330ab042 Check available space in /var/lib/postgresql before running postgresql migration 2018-06-11 18:15:19 +02:00
Alexandre Aubin
5013965c0e
[enh] [wip] Stretch migration (#433)
* Add migration skeleton
* Clumsy attempt to adapt the upgrade script to python
* At the end of the migration, force the regen conf of specific services
* Implement the apt clean/autoremove at the end of migration
* Attempt to fix the upgrade of yunohost packages
* Dumb mistake :|
* Adding strings
* Add test of free space for /var/
* Fix sources.list patching
* Stupid mistake :|
* Check system is up to date
* Working on disclaimer draft
* Add a function to list installed 'unstable' apps
* Get actual list of problemtic apps + improve disclaimer message building
* Use helper to run the apt update
* More simplifications of disclaimer building
* Add helper function to get manually modified files
* Fetch actuall list of manually modified files to build disclaimer
* Internationalize disclaimer
* Don't skip stretch migration when running postinstall on jessie
* Add a done message at the very end of the migration
* Also patch jessie/updates and backports in sources.list
* Backup and restore conf files modified during the upgrade to not mess regen-conf
* Also check for yunohost being in 2.x at the beginning of upgrade
* Fix the check for upgradable packages..
* Try to be more robust if folder already exists (when running multiple times)
* I probably meant fail2ban here o.O
* Try to improve robustness when running multiple time
* Add a check after the main upgrade that we're effectively on stretch
* Hold apps equivs packages during the upgrade
* Show dist-upgrade logs in the yunohost admin, using call_async_output
* Misc fixes because I broke things /o\
* Touch /etc/yunohost/installed at the end, because for some weird reason it get deleted sometimes :|
* Removing this unecessary message, especially because it 'hide' the previous one when running from the webadmin
* Install php-zip for nextcloud and kanboard
* Don't crash if there's no [app]-ynh-deps
* Revert previous commit that added this, should be fixed in the stretch branch now
* [fix] Unhold metronome for migration (#452)
* Let's use forge.yunohost.org as repo now
2018-05-02 02:10:46 +02:00
Laurent Peuch
52a54c5ab1
[mod] we are in 2017 2018-02-07 21:46:38 +01:00
Alexandre Aubin
f5b5edb3bb This get_public_ips isn't really relevant anymore 2018-01-26 03:41:34 +01:00
Alexandre Aubin
4dfb1ee777 Move get_public_ip to an 'util' file 2018-01-26 03:19:22 +01:00
Laurent Peuch
235a2ed2b7 [fix] as_dict was used for manifest comparison 2018-01-14 02:59:03 +01:00
Laurent Peuch
979123bf61 [fix] other part of the code didn't expected this new datastructure 2018-01-13 23:01:54 +01:00
JimboJoe
4f679367eb
Typo 2018-01-09 20:30:43 +01:00
Laurent Peuch
e0edbeca35 [enh] --version now display stable/testing/unstable information 2018-01-08 04:13:55 +01:00
Laurent Peuch
70e08ed40f [fix] pkg is None, can't continue loop 2018-01-08 02:47:36 +01:00
Laurent Peuch
baf0d098f5 [mod] explicitely import previously globals magic variables 2017-07-25 21:32:20 +02:00
Laurent Peuch
aad3740933 [mod] autopep8 on all files that aren't concerned by a PR 2016-12-18 02:01:17 +01:00
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
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
Jérôme Lebleu
5afd0c1272 [enh] Rely on APT python library to retrieve packages version
It introduces a new `yunohost.utils` package which will contain common
utils used by YunoHost actions. It comes with a work in progress `packages`
module with simple methods to retrieve installed version of packages for now.
2016-03-08 16:10:14 +01:00