Merge branch 'package_update_openwrt' into 'master'

WIP: [__package_update_index] add support for openwrt

See merge request ungleich-public/cdist!908
This commit is contained in:
pedro 2021-11-04 00:16:50 +01:00
commit 13708bd06a
3 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,7 @@ else
debian|ubuntu|devuan) echo "apt" ;;
archlinux) echo "pacman" ;;
alpine) echo "apk" ;;
openwrt) echo "opkg" ;;
*)
echo "Don't know how to manage packages on: $os" >&2
exit 1

View File

@ -64,6 +64,10 @@ case "$type" in
echo "apk update"
echo "apk package database updated." >>"$__messages_out"
;;
opkg)
echo "opkg update"
echo "opkg package database updated." >>"$__messages_out"
;;
*)
echo "Don't know how to manage packages for type: $type" >&2
exit 1

View File

@ -26,6 +26,7 @@ type
* apt for Debian
* yum for Red Hat
* pacman for Arch Linux
* opkg for OpenWrt
maxage
Available for package manager apt and pacman, max time in seconds since