Merge branch '__package_update_index_alpine' into 'master'

alpine support added in __package_update_index

See merge request ungleich-public/cdist!809
This commit is contained in:
poljakowski 2019-10-27 18:11:08 +01:00
commit fe23355bfc
3 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,9 @@ case "$type" in
echo 0 echo 0
fi fi
;; ;;
alpine)
echo 0
;;
*) echo "Your specified type ($type) is currently not supported." >&2 *) echo "Your specified type ($type) is currently not supported." >&2
echo "Please contribute an implementation for it if you can." >&2 echo "Please contribute an implementation for it if you can." >&2
;; ;;

View File

@ -26,6 +26,7 @@ else
amazon|scientific|centos|fedora|redhat) echo "yum" ;; amazon|scientific|centos|fedora|redhat) echo "yum" ;;
debian|ubuntu|devuan) echo "apt" ;; debian|ubuntu|devuan) echo "apt" ;;
archlinux) echo "pacman" ;; archlinux) echo "pacman" ;;
alpine) echo "apk" ;;
*) *)
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

@ -47,6 +47,10 @@ case "$type" in
echo "pacman --noprogressbar --sync --refresh" echo "pacman --noprogressbar --sync --refresh"
echo "pacman package database synced (age was: $currage)" >> "$__messages_out" echo "pacman package database synced (age was: $currage)" >> "$__messages_out"
;; ;;
alpine)
echo "apk update"
echo "apk package database updated."
;;
*) *)
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