fatal "There is missed /usr/sbin path in PATH. Probably you have used 'su' without '-' to get root access. Use 'esu' or 'su -' command to get root permissions."
}
SUDO_TESTED=''
SUDO_TESTED=''
SUDO_CMD='sudo'
SUDO_CMD='sudo'
set_sudo()
set_sudo()
...
@@ -390,6 +403,8 @@ set_sudo()
...
@@ -390,6 +403,8 @@ set_sudo()
return
return
fi
fi
check_su_root
# if we are root, do not need sudo
# if we are root, do not need sudo
is_root &&return
is_root &&return
...
@@ -9141,6 +9156,8 @@ __epm_repack_to_deb()
...
@@ -9141,6 +9156,8 @@ __epm_repack_to_deb()
TDIR="$(mktemp-d--tmpdir=$BIGTMPDIR)"|| fatal
TDIR="$(mktemp-d--tmpdir=$BIGTMPDIR)"|| fatal
remove_on_exit $TDIR
remove_on_exit $TDIR
umask 022
for pkg in$pkgs;do
for pkg in$pkgs;do
abspkg="$(realpath"$pkg")"
abspkg="$(realpath"$pkg")"
info "Repacking $abspkg to local deb format (inside $TDIR) ..."
info "Repacking $abspkg to local deb format (inside $TDIR) ..."
fatal "There is missed /usr/sbin path in PATH. Probably you have used 'su' without '-' to get root access. Use 'esu' or 'su -' command to get root permissions."
}
SUDO_TESTED=''
SUDO_TESTED=''
SUDO_CMD='sudo'
SUDO_CMD='sudo'
set_sudo()
set_sudo()
...
@@ -391,6 +404,8 @@ set_sudo()
...
@@ -391,6 +404,8 @@ set_sudo()
return
return
fi
fi
check_su_root
# if we are root, do not need sudo
# if we are root, do not need sudo
is_root &&return
is_root &&return
...
@@ -1890,9 +1905,9 @@ case $DISTRIB_ID in
...
@@ -1890,9 +1905,9 @@ case $DISTRIB_ID in
;;
;;
*)
*)
if is_command "rpm"&&[-s /var/lib/rpm/Name ]||[-s /var/lib/rpm/rpmdb.sqlite ];then
if is_command "rpm"&&[-s /var/lib/rpm/Name ]||[-s /var/lib/rpm/rpmdb.sqlite ];then