Compare commits

...

1 commit

Author SHA1 Message Date
pedrolab
54be361e16 [__package_update_index] add support for openwrt 2020-07-18 22:39:23 +02:00
3 changed files with 6 additions and 0 deletions

View file

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

View file

@ -52,6 +52,10 @@ case "$type" in
echo "apk update" echo "apk update"
echo "apk package database updated." >>"$__messages_out" 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 echo "Don't know how to manage packages for type: $type" >&2
exit 1 exit 1

View file

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