mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
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>
4.1 KiB
4.1 KiB