Commit f04b9035 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: improve AlpineLinux support

parent 546b737b
......@@ -194,7 +194,7 @@ case $DISTRIB_ID in
Cygwin)
CMD="aptcyg"
;;
alpine)
AlpineLinux)
CMD="apk"
;;
TinyCoreLinux)
......
......@@ -26,6 +26,9 @@ case $PMTYPE in
pkgng)
sudocmd pkg audit -F
;;
apk)
sudocmd apk audit
;;
*)
fatal "Have no suitable command for $PMTYPE"
;;
......
......@@ -76,6 +76,9 @@ case $PMTYPE in
xbps)
sudocmd xbps-pkgdb -a
;;
apk)
sudocmd apk fix
;;
*)
fatal "Have no suitable command for $PMTYPE"
;;
......
......@@ -40,6 +40,9 @@ check_pkg_integrity()
# FIXME: debsums -ca package ?
docmd dpkg --contents $PKG >/dev/null && echo "Package $PKG is correct."
;;
apk)
docmd apkg verify $PKG
;;
exe)
file $PKG | grep -q "executable for MS Windows"
;;
......
......@@ -155,6 +155,10 @@ __epm_filelist_name()
opkg)
CMD="opkg files"
;;
apk)
docmd apk manifest $@ | sed -e 's|^sha1.* |/|'
return
;;
eopkg)
docmd eopkg --files -s info $@ | grep "^/"
return
......
......@@ -122,6 +122,9 @@ case $PMTYPE in
opkg)
docmd opkg info $pkg_names
;;
apk)
docmd apk info $pkg_names
;;
pkgng)
docmd pkg info $pkg_names
;;
......
......@@ -37,6 +37,9 @@ case $PMTYPE in
packagekit)
docmd pkcon resolve $pkg_names
;;
apk)
docmd apk policy $pkg_names
;;
*)
fatal "Have no suitable command for $PMTYPE"
;;
......
AlpineLinux/3.17 alpine/3.17
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.0
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment