Commit 6eab1495 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add base Redox support

parent 55277ad6
......@@ -167,6 +167,9 @@ case $DISTRIB_ID in
Gentoo)
CMD="emerge"
;;
Redox)
CMD="redox-pkg"
;;
ArchLinux|ManjaroLinux)
CMD="pacman"
;;
......@@ -604,6 +607,10 @@ elif distro SuSe-release || distro SuSE-release ; then
DISTRIB_ID="SLES"
fi
elif distro redox-release ; then
DISTRIB_ID="Redox"
DISTRIB_RELEASE=$(cat $DISTROFILE)
# fixme: can we detect by some file?
elif [ "$(uname)" = "FreeBSD" ] ; then
DISTRIB_ID="FreeBSD"
......@@ -671,6 +678,9 @@ case "$DIST_OS" in
'freebsd' | 'openbsd' | 'netbsd')
DIST_OS="freebsd"
;;
'Redox')
DIST_OS="redox"
;;
esac
echo "$DIST_OS"
}
......
......@@ -161,6 +161,9 @@ __epm_filelist_name()
pkgng)
CMD="pkg info -l"
;;
redox-pkg)
CMD="pkg list"
;;
opkg)
CMD="opkg files"
;;
......
......@@ -114,6 +114,9 @@ epm_install_names()
pkgng)
sudocmd pkg install $@
return ;;
redox-pkg)
sudocmd pkg install $@
return ;;
emerge)
sudocmd emerge -uD $@
return ;;
......
......@@ -168,6 +168,9 @@ epm_upgrade()
pkgng)
CMD="pkg upgrade"
;;
redox-pkg)
CMD="pkg upgrade"
;;
apk)
CMD="apk upgrade"
;;
......
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