Commit 28b68c58 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed files

parent 9a3c6d78
...@@ -377,6 +377,7 @@ case $DISTRNAME in ...@@ -377,6 +377,7 @@ case $DISTRNAME in
Ubuntu|Debian|Mint) Ubuntu|Debian|Mint)
CMD="apt-dpkg" CMD="apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg #which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
which snappy 2>/dev/null >/dev/null && CMD=snappy
;; ;;
Mandriva|ROSA) Mandriva|ROSA)
CMD="urpm-rpm" CMD="urpm-rpm"
...@@ -784,7 +785,7 @@ check_pkg_integrity() ...@@ -784,7 +785,7 @@ check_pkg_integrity()
# TODO: add to patool via cabextract # TODO: add to patool via cabextract
assure_exists cabextract assure_exists cabextract
#file $PKG | grep -q "Microsoft Office Document" #file $PKG | grep -q "Microsoft Office Document"
cabextract -t $PKG docmd cabextract -t $PKG
;; ;;
ebuild) ebuild)
true true
...@@ -1407,6 +1408,9 @@ epm_install_names() ...@@ -1407,6 +1408,9 @@ epm_install_names()
dnf-rpm) dnf-rpm)
sudocmd dnf install $@ sudocmd dnf install $@
return ;; return ;;
snappy)
sudocmd snappy install $@
return ;;
zypper-rpm) zypper-rpm)
sudocmd zypper install $ZYPPEROPTIONS $@ sudocmd zypper install $ZYPPEROPTIONS $@
return ;; return ;;
...@@ -1846,6 +1850,9 @@ case $PMTYPE in ...@@ -1846,6 +1850,9 @@ case $PMTYPE in
CMD="dpkg-query -W --showformat=\${Package}-\${Version}\n $pkg_filenames" CMD="dpkg-query -W --showformat=\${Package}-\${Version}\n $pkg_filenames"
[ -n "$short" ] && CMD="dpkg-query -W --showformat=\${Package}\n $pkg_filenames" [ -n "$short" ] && CMD="dpkg-query -W --showformat=\${Package}\n $pkg_filenames"
;; ;;
snappy)
CMD="snappy info"
;;
yum-rpm|urpm-rpm|zypper-rpm|dnf-rpm) yum-rpm|urpm-rpm|zypper-rpm|dnf-rpm)
CMD="rpm -qa $pkg_filenames" CMD="rpm -qa $pkg_filenames"
[ -n "$short" ] && CMD="rpm -qa --queryformat %{name}\n $pkg_filenames" [ -n "$short" ] && CMD="rpm -qa --queryformat %{name}\n $pkg_filenames"
...@@ -2546,6 +2553,9 @@ epm_remove_names() ...@@ -2546,6 +2553,9 @@ epm_remove_names()
dnf-rpm) dnf-rpm)
sudocmd dnf remove $@ sudocmd dnf remove $@
return ;; return ;;
snappy)
sudocmd snappy uninstall $@
return ;;
zypper-rpm) zypper-rpm)
sudocmd zypper remove $@ sudocmd zypper remove $@
return ;; return ;;
...@@ -3235,6 +3245,9 @@ case $PMTYPE in ...@@ -3235,6 +3245,9 @@ case $PMTYPE in
#sudocmd apt-get -f install || exit #sudocmd apt-get -f install || exit
#sudocmd apt-get autoremove #sudocmd apt-get autoremove
;; ;;
#snappy)
# sudocmd snappy
# ;;
aptitude-dpkg) aptitude-dpkg)
sudocmd aptitude update || exit sudocmd aptitude update || exit
;; ;;
...@@ -3310,6 +3323,9 @@ epm_upgrade() ...@@ -3310,6 +3323,9 @@ epm_upgrade()
dnf-rpm) dnf-rpm)
CMD="dnf update" CMD="dnf update"
;; ;;
snappy)
CMD="snappy update"
;;
urpm-rpm) urpm-rpm)
# or --auto-select --replace-files # or --auto-select --replace-files
CMD="urpmi --auto-update" CMD="urpmi --auto-update"
...@@ -3776,7 +3792,7 @@ $(get_help HELPOPT) ...@@ -3776,7 +3792,7 @@ $(get_help HELPOPT)
print_version() print_version()
{ {
echo "EPM package manager version 1.5.7" echo "EPM package manager version 1.5.8"
echo "Running on $($DISTRVENDOR) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)" echo "Running on $($DISTRVENDOR) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)"
echo "Copyright (c) Etersoft 2012-2014" echo "Copyright (c) Etersoft 2012-2014"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
...@@ -375,6 +375,7 @@ case $DISTRNAME in ...@@ -375,6 +375,7 @@ case $DISTRNAME in
Ubuntu|Debian|Mint) Ubuntu|Debian|Mint)
CMD="apt-dpkg" CMD="apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg #which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
which snappy 2>/dev/null >/dev/null && CMD=snappy
;; ;;
Mandriva|ROSA) Mandriva|ROSA)
CMD="urpm-rpm" CMD="urpm-rpm"
...@@ -1067,9 +1068,12 @@ set_service_type() ...@@ -1067,9 +1068,12 @@ set_service_type()
is_active_systemd() is_active_systemd()
{ {
local a
SYSTEMCTL=/bin/systemctl SYSTEMCTL=/bin/systemctl
SYSTEMD_CGROUP_DIR=/sys/fs/cgroup/systemd SYSTEMD_CGROUP_DIR=/sys/fs/cgroup/systemd
[ -x "$SYSTEMCTL" ] && [ -d "$SYSTEMD_CGROUP_DIR" ] && mountpoint -q "$SYSTEMD_CGROUP_DIR" [ -x "$SYSTEMCTL" ] || return
[ -d "$SYSTEMD_CGROUP_DIR" ] || return
a= mountpoint -q "$SYSTEMD_CGROUP_DIR"
} }
case $DISTRNAME in case $DISTRNAME in
...@@ -1134,7 +1138,7 @@ $(get_help HELPOPT) ...@@ -1134,7 +1138,7 @@ $(get_help HELPOPT)
print_version() print_version()
{ {
echo "Service manager version 1.5.7" echo "Service manager version 1.5.8"
echo "Running on $($DISTRVENDOR)" echo "Running on $($DISTRVENDOR)"
echo "Copyright (c) Etersoft 2012, 2013" echo "Copyright (c) Etersoft 2012, 2013"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
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