Commit Graph

27 Commits

Author SHA1 Message Date
Matthias Reichl
db9b48abfe update_binary-addons: fix PKG_REV bump for unofficial addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 23:41:36 +02:00
Matthias Reichl
38a137c923 addon update scripts: refactor repo fetching and package updating
Kodi binary and game addons always reference branches in the addon
repo. The only exception is the kodi-platform package which references
a githash.

This allows us to simplify remote repo fetch and tag / branch HEAD
resolving: we don't need named branches in the working copy but can
simply query remote branches or use a detached branch if we need the
actual contents.

With this change the same (out-of-tree) directory containing cloned
repos can be used to update both kodi Leia and master addon versions,
without needing another clone.

Also refactor the package update code, drop update_to_latest_tag from
common functions (it was only used by update_binary-addons,
update_retroplayer-addons needs slightly different logic) and use
update_pkg function. update_retroplayer-addons now also uses update_pkg
instead of duplicating nearly identical code.

Several variable names have been cleaned up to follow a common naming
pattern.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:29:02 +02:00
Matthias Reichl
3e97dce6c5 addon update scripts: change PKG_REV update logic
When updating versioned / tagged addons reset PKG_REV to 1.

When updating unversioned / untagged addons always bump PKG_REV
as we don't know if the version has been changed or not.

If the "-b/--bump-pkg-rev" option is used PKG_REV will be bumped
on all addons that weren't updated. Use this to ensure all addons
will have a newer version than before.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:12:39 +02:00
Matthias Reichl
7cf95c6b99 addon update scripts: set modes via command line options
Use command line options to select PKG_REV bump and deleting
cloned git dis after update. git dirs are now kept by default,
deleting them has to be explicitly enabled via "-d".

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:12:39 +02:00
Matthias Reichl
a65908b1d7 update_binary-addons: exclude vfs.nfs from updates
vfs.nfs isn't released yet

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:59:23 +01:00
Matthias Reichl
9c8860c5bc update_binary-addons: make missing addon check work again
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:59:11 +01:00
Matthias Reichl
3d60aba791 update_binary-addons: remove p8-platform bump
LibreELEC uses a locally managed, newer version of p8-platform

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
3f2eb80d8f update_binary-addons: exclude vfs.sacd from updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
78259e03a0 update addons: add possibility to exclude packages in updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
8e921e37a9 factor out common binary/retroplayer addon update functions
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:06:15 +01:00
Matthias Reichl
de946a4c5a update_binary-addons: fix unquoted path variables
also change missing tag ERROR to WARNING

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 20:37:25 +01:00
Matthias Reichl
4c170f5b0b update_binary-addons: add options to keep git dirs and bump PKG_REVs
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 17:44:16 +01:00
Matthias Reichl
d0cc97cdd6 update_binary-addons: update kodi addons to latest tag
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 17:40:38 +01:00
MilhouseVH
2ffe2df9c0 update_binary-addons: use full rev 2018-08-18 09:52:44 +01:00
CvH
ec9319ec8d spdx: tools/ 2018-07-17 23:58:49 +02:00
MilhouseVH
6b9155cf8b tools: source packages reliably 2018-02-01 02:59:57 +00:00
MilhouseVH
355be18dbf update_binary-addons: add sha256 support 2017-08-07 18:27:09 +01:00
MilhouseVH
608dd132e3 update_binary-addons: add diagnostic message for resolved hashes 2017-07-07 17:37:22 +01:00
MilhouseVH
bc2553b363 update_binary-addons: make script branch aware 2017-05-27 14:44:19 -07:00
MilhouseVH
3abcbb3f5f tools/update_binary-addons: ignore game.* addons 2017-05-09 11:09:45 +01:00
Lukas Rusak
9ab1255cfa update_binary-addons: clone kodi if it doesn't exist 2017-02-07 13:46:47 -08:00
MilhouseVH
f4d38b844a kodi-binary-addons: bump missed addons (#1269)
* update_binary-addons: fix cmake paths after move to root

* kodi-binary-addons: bump missed addons
2017-02-02 15:11:11 +04:00
MilhouseVH
fd054a49d8 update_binary-addons: validate package urls against kodi urls 2016-06-27 16:47:41 +01:00
MilhouseVH
8701fc2022 update_binary-addons: Extend support to unofficial addons 2016-06-27 09:05:28 +01:00
Lukas Rusak
f868d258af mkpkg_binary-addons: update to include p8-platform 2016-04-18 00:50:44 -07:00