Commit 3b41a0aa authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.58.2

parent 73d08b14
......@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.58.1"
EPMVERSION="3.58.2"
# package, single (file), pipe, git
EPMMODE="package"
......@@ -372,6 +372,19 @@ info()
fi
}
check_su_root()
{
[ "$BASEDISTRNAME" = "alt" ] || return 0
is_root || return 0
echo "$PATH" | grep -q "/usr/sbin" && return 0
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_CMD='sudo'
set_sudo()
......@@ -390,6 +403,8 @@ set_sudo()
return
fi
check_su_root
# if we are root, do not need sudo
is_root && return
......@@ -9141,6 +9156,8 @@ __epm_repack_to_deb()
TDIR="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal
remove_on_exit $TDIR
umask 022
for pkg in $pkgs ; do
abspkg="$(realpath "$pkg")"
info "Repacking $abspkg to local deb format (inside $TDIR) ..."
......@@ -9170,9 +9187,12 @@ __epm_repack_to_deb()
__get_icons_hicolor_list()
{
local i
for i in apps scalable symbolic 8x8 14x14 16x16 20x20 22x22 24x24 28x28 32x32 36x36 42x42 45x45 48x48 64 64x64 72x72 96x96 128x128 144x144 160x160 192x192 256x256 480x480 512 512x512 1024x1024 ; do
local i j
for i in apps scalable symbolic 8x8 14x14 16x16 20x20 22x22 24x24 28x28 32x32 36x36 42x42 45x45 48x48 64 64x64 72x72 96x96 128x128 144x144 160x160 192x192 256x256 256x256@2x 480x480 512 512x512 1024x1024 ; do
echo "/usr/share/icons/hicolor/$i"
for j in actions animations apps categories devices emblems emotes filesystems intl mimetypes places status stock ; do
echo "/usr/share/icons/hicolor/$i/$j"
done
done
}
......@@ -9267,6 +9287,8 @@ __epm_repack_to_rpm()
;;
esac
umask 022
# TODO: improve
if echo "$pkgs" | grep -q "\.deb" ; then
assure_exists dpkg || fatal
......@@ -13256,9 +13278,9 @@ case $DISTRIB_ID in
;;
*)
if is_command "rpm" && [ -s /var/lib/rpm/Name ] || [ -s /var/lib/rpm/rpmdb.sqlite ] ; then
is_command "apt-get" && [ -d /var/lib/apt ] && echo "apt-rpm" && return
is_command "zypper" && echo "zypper-rpm" && return
is_command "dnf" && echo "dnf-rpm" && return
is_command "apt-get" && echo "apt-rpm" && return
is_command "yum" && echo "yum-rpm" && return
is_command "urpmi" && echo "urpm-rpm" && return
fi
......@@ -13961,12 +13983,12 @@ distro_info v$PROGVERSION $EV: Copyright © 2007-2023 Etersoft
Vendor distro name (-s) / Repo name (-r): $(pkgvendor) / $(print_repo_name)
Package manager/type (-g/-p): $(pkgmanager) / $(pkgtype)
Base OS name (-o) / CPU arch (-a): $(get_base_os_name) $(get_arch)
Bug report URL (--bug-report-url): $(print_bug_report_url)
CPU norm register size (-b): $(get_bit_size)
CPU norm register size (-b): $(get_bit_size) bit
Virtualization (-i): $(get_virt)
CPU Cores/MHz (-c/-z): $(get_core_count) / $(get_core_mhz) MHz
System memory size (MB) (-m): $(get_memory_size)
System memory size (-m): $(get_memory_size) MiB
Running service manager (-y): $(get_service_manager)
Bug report URL (--bug-report-url): $(print_bug_report_url)
(run with -h to get help)
EOF
......
......@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.58.1"
EPMVERSION="3.58.2"
# package, single (file), pipe, git
EPMMODE="package"
......@@ -373,6 +373,19 @@ info()
fi
}
check_su_root()
{
[ "$BASEDISTRNAME" = "alt" ] || return 0
is_root || return 0
echo "$PATH" | grep -q "/usr/sbin" && return 0
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_CMD='sudo'
set_sudo()
......@@ -391,6 +404,8 @@ set_sudo()
return
fi
check_su_root
# if we are root, do not need sudo
is_root && return
......@@ -1890,9 +1905,9 @@ case $DISTRIB_ID in
;;
*)
if is_command "rpm" && [ -s /var/lib/rpm/Name ] || [ -s /var/lib/rpm/rpmdb.sqlite ] ; then
is_command "apt-get" && [ -d /var/lib/apt ] && echo "apt-rpm" && return
is_command "zypper" && echo "zypper-rpm" && return
is_command "dnf" && echo "dnf-rpm" && return
is_command "apt-get" && echo "apt-rpm" && return
is_command "yum" && echo "yum-rpm" && return
is_command "urpmi" && echo "urpm-rpm" && return
fi
......@@ -2595,12 +2610,12 @@ distro_info v$PROGVERSION $EV: Copyright © 2007-2023 Etersoft
Vendor distro name (-s) / Repo name (-r): $(pkgvendor) / $(print_repo_name)
Package manager/type (-g/-p): $(pkgmanager) / $(pkgtype)
Base OS name (-o) / CPU arch (-a): $(get_base_os_name) $(get_arch)
Bug report URL (--bug-report-url): $(print_bug_report_url)
CPU norm register size (-b): $(get_bit_size)
CPU norm register size (-b): $(get_bit_size) bit
Virtualization (-i): $(get_virt)
CPU Cores/MHz (-c/-z): $(get_core_count) / $(get_core_mhz) MHz
System memory size (MB) (-m): $(get_memory_size)
System memory size (-m): $(get_memory_size) MiB
Running service manager (-y): $(get_service_manager)
Bug report URL (--bug-report-url): $(print_bug_report_url)
(run with -h to get help)
EOF
......
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