YunoHost / package_check

Shell script which check package actions: install, remove, upgrade, backup, restore…
GNU General Public License v3.0
21 stars 26 forks source link

Tell upgrade script from what version to upgrade #29

Closed Jibec closed 6 years ago

Jibec commented 7 years ago

Hi, would it be possible to add an argument to tell package_check to upgrade from a specific version (folder or git address)?

My use case is as following:

Thanks for your help

Jibec commented 7 years ago

current implementation is interesting and works fine with firefox sync (ffsync_ynh). See: https://github.com/YunoHost/package_check/commit/0c841b6bbc15efc8667fbcaa9e7857f1b78aa06b

thanks for your help (au PR would make links easier :p)

I'm unsure we should keep the upgrade=1 without from_commit. I suggest to depreciate it and to automatically test upgrade from same version if there is only upgrades with "from_commit".