alpine support added in __package_update_index
This commit is contained in:
parent
00852cb17d
commit
0ec52fd1bd
3 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue