Commit 93476aa5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

replace pkg_add with pkgsrc (generic name for *BSD package manager)

parent bcd4d994
......@@ -63,7 +63,7 @@ epm_install_names()
urpm-rpm)
sudocmd urpmi $URPMOPTIONS $@
return ;;
pkg_add)
pkgsrc)
sudocmd pkg_add -r $@
return ;;
emerge)
......@@ -112,7 +112,7 @@ epm_ni_install_names()
# FIXME: returns true ever no package found, need check for "no found", "Nothing to do."
yes | sudocmd zypper --non-interactive $ZYPPEROPTIONS install $@
return ;;
pkg_add)
pkgsrc)
sudocmd pkg_add -r $@
return ;;
pacman)
......@@ -184,7 +184,7 @@ epm_install_files()
URPMOPTIONS=--no-verify-rpm
# use install_names
;;
pkg_add)
pkgsrc)
sudocmd pkg_add $@
return ;;
pacman)
......@@ -208,7 +208,7 @@ epm_print_install_command()
apt-dpkg)
echo "dpkg -i $@"
;;
pkg_add)
pkgsrc)
echo "pkg_add $@"
;;
pacman)
......
......@@ -35,7 +35,7 @@ case $PMTYPE in
emerge)
CMD="qlist -I"
;;
pkg_add)
pkgsrc)
CMD="pkg_info"
;;
pacman)
......
......@@ -37,7 +37,7 @@ epm_reinstall_names()
zypper-rpm)
sudocmd zypper install $@
return ;;
pkg_add)
pkgsrc)
sudocmd pkg_add -r $@
return ;;
pacman)
......
......@@ -28,7 +28,7 @@ epm_remove_low()
apt-dpkg)
sudocmd dpkg -P $@
return ;;
pkg_add)
pkgsrc)
sudocmd pkg_delete -r $@
return ;;
emerge)
......@@ -55,7 +55,7 @@ epm_remove_names()
urpm-rpm)
sudocmd urpme $@
return ;;
pkg_add) # without dependencies
pkgsrc) # without dependencies
sudocmd pkg_delete $@
return ;;
emerge)
......@@ -127,7 +127,7 @@ epm_print_remove_command()
apt-dpkg)
echo "dpkg -P $@"
;;
pkg_add)
pkgsrc)
echo "pkg_delete -r $@"
;;
emerge)
......
......@@ -31,7 +31,7 @@ case $PMTYPE in
urpm-rpm)
CMD="urpmq -y"
;;
pkg_add)
pkgsrc)
CMD="pkg_info -x"
;;
emerge)
......
......@@ -200,8 +200,8 @@ case $DISTRNAME in
Mandriva|ROSA)
CMD="urpm-rpm"
;;
FreeBSD)
CMD="pkg_add"
FreeBSD|NetBSD|OpenBSD|Solaris)
CMD="pkgsrc"
;;
Gentoo)
CMD="emerge"
......
......@@ -46,7 +46,7 @@ epm_upgrade()
emerge)
CMD="emerge -NuDa world"
;;
pkg_add)
pkgsrc)
CMD="freebsd-update fetch install"
;;
chocolatey)
......
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