Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
48c6bc04
Commit
48c6bc04
authored
Jul 31, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use LC_ALL=C instead of LANG=C
parent
a225df3a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
18 deletions
+18
-18
distr_info
bin/distr_info
+1
-1
epm-dedup
bin/epm-dedup
+1
-1
epm-install
bin/epm-install
+1
-1
epm-play
bin/epm-play
+3
-3
epm-requires
bin/epm-requires
+5
-5
epm-search
bin/epm-search
+2
-2
epm-sh-functions
bin/epm-sh-functions
+1
-1
epm-sh-install
bin/epm-sh-install
+1
-1
epm-whatdepends
bin/epm-whatdepends
+1
-1
epm-whatprovides
bin/epm-whatprovides
+1
-1
serv-status
bin/serv-status
+1
-1
No files found.
bin/distr_info
View file @
48c6bc04
...
...
@@ -862,7 +862,7 @@ get_virt()
fi
# use util-linux
if
L
ANG
=
C
a
=
lscpu |
grep
"Hypervisor vendor:"
|
grep
-q
"KVM"
;
then
if
L
C_ALL
=
C
a
=
lscpu |
grep
"Hypervisor vendor:"
|
grep
-q
"KVM"
;
then
echo
"kvm"
&&
return
fi
...
...
bin/epm-dedup
View file @
48c6bc04
...
...
@@ -28,7 +28,7 @@ try_fix_apt_rpm_dupls()
sudocmd epm remove
--auto
$TESTPKG
||
return
fi
local
PKGLIST
PKGLIST
=
$(
L
ANG
=
C sudorun apt-get
install
$TESTPKG
2>&1 |
grep
"W: There are multiple versions of"
|
\
PKGLIST
=
$(
L
C_ALL
=
C sudorun apt-get
install
$TESTPKG
2>&1 |
grep
"W: There are multiple versions of"
|
\
sed
-e
's|W: There are multiple versions of "\(.*\)" in your system.|\1|'
)
local
TODEL
for
i
in
$PKGLIST
;
do
...
...
bin/epm-install
View file @
48c6bc04
...
...
@@ -290,7 +290,7 @@ epm_ni_install_names()
__epm_check_if_rpm_already_installed
()
{
# Not: we can make optimize if just check version?
L
ANG
=
C sudorun rpm
-Uvh
--test
"
$@
"
2>&1 |
grep
-q
"is already installed"
L
C_ALL
=
C sudorun rpm
-Uvh
--test
"
$@
"
2>&1 |
grep
-q
"is already installed"
}
__handle_direct_install
()
...
...
bin/epm-play
View file @
48c6bc04
...
...
@@ -108,8 +108,8 @@ __filter_by_installed_packages()
remove_on_exit
$pkglist
# get intersect between full package list and available packages table
epm
--short
packages |
L
ANG
=
C
sort
-u
>
$pkglist
L
ANG
=
C
join
-11
-21
$tapt
$pkglist
|
uniq
epm
--short
packages |
L
C_ALL
=
C
sort
-u
>
$pkglist
L
C_ALL
=
C
join
-11
-21
$tapt
$pkglist
|
uniq
rm
-f
$pkglist
# rpm on Fedora/CentOS no more print missed packages to stderr
...
...
@@ -125,7 +125,7 @@ __get_installed_table()
local
tapt
tapt
=
"
$(
mktemp
)
"
||
fatal
remove_on_exit
$tapt
__list_app_packages_table |
L
ANG
=
C
sort
-u
>
$tapt
__list_app_packages_table |
L
C_ALL
=
C
sort
-u
>
$tapt
__filter_by_installed_packages
$tapt
rm
-f
$tapt
}
...
...
bin/epm-requires
View file @
48c6bc04
...
...
@@ -40,7 +40,7 @@ get_linked_shared_libs()
assure_exists readelf binutils
#is_command readelf || fatal "Can't get required shared library: readelf is missed. Try install binutils package."
#ldd "$exe" | sed -e 's|[[:space:]]*||' | grep "^lib.*[[:space:]]=>[[:space:]]\(/usr/lib\|/lib\)" | sed -e 's|[[:space:]].*||'
L
ANG
=
C readelf
-d
"
$1
"
|
grep
"(NEEDED)"
|
grep
"Shared library:"
|
sed
-e
's|.*Shared library: \[||'
-e
's|\]$||'
|
grep
"^lib"
L
C_ALL
=
C readelf
-d
"
$1
"
|
grep
"(NEEDED)"
|
grep
"Shared library:"
|
sed
-e
's|.*Shared library: \[||'
-e
's|\]$||'
|
grep
"^lib"
}
__epm_elf32_requires
()
...
...
@@ -92,7 +92,7 @@ epm_requires_files()
;;
eopkg
)
showcmd eopkg info
$pkg_files
L
ANG
=
C eopkg info
$pkg_files
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
L
C_ALL
=
C eopkg info
$pkg_files
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
;;
ELF
)
__epm_elf_requires
$pkg_files
...
...
@@ -123,9 +123,9 @@ case $PMTYPE in
CMD
=
"apt-cache depends"
else
if
[
-n
"
$short
"
]
;
then
L
ANG
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
's|, |\n|g'
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs |
sed
-e
"s| .*||"
L
C_ALL
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
's|, |\n|g'
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs |
sed
-e
"s| .*||"
else
L
ANG
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
's|, |\n|g'
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs
L
C_ALL
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
's|, |\n|g'
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs
fi
return
fi
...
...
@@ -186,7 +186,7 @@ case $PMTYPE in
;;
eopkg
)
showcmd eopkg info
$pkg_names
L
ANG
=
C eopkg info
$pkg_names
|
grep
"^Dependencies"
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
L
C_ALL
=
C eopkg info
$pkg_names
|
grep
"^Dependencies"
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
return
;;
xbps
)
...
...
bin/epm-search
View file @
48c6bc04
...
...
@@ -93,7 +93,7 @@ case $PMTYPE in
if
[
-n
"
$verbose
"
]
;
then
CMD
=
"/usr/sbin/slackpkg search"
else
L
ANG
=
C docmd /usr/sbin/slackpkg search
$string
|
grep
" - "
|
sed
-e
's|.* - ||g'
L
C_ALL
=
C docmd /usr/sbin/slackpkg search
$string
|
grep
" - "
|
sed
-e
's|.* - ||g'
return
fi
;;
...
...
@@ -126,7 +126,7 @@ case $PMTYPE in
;;
esac
L
ANG
=
C docmd
$CMD
$string
L
C_ALL
=
C docmd
$CMD
$string
epm play
$short
--list-all
|
sed
-e
's|^ *||g'
-e
's|[[:space:]]\+| |g'
-e
"s|
\$
| (use
\'
epm play
\'
to install it)|"
}
...
...
bin/epm-sh-functions
View file @
48c6bc04
...
...
@@ -274,7 +274,7 @@ store_output()
local
CMDSTATUS
=
$RC_STDOUT
.pipestatus
echo
1
>
$CMDSTATUS
#RC_STDERR=$(mktemp)
(
L
ANG
=
C
$@
2>&1
;
echo
$?
>
$CMDSTATUS
)
|
tee
$RC_STDOUT
(
L
C_ALL
=
C
$@
2>&1
;
echo
$?
>
$CMDSTATUS
)
|
tee
$RC_STDOUT
return
"
$(
cat
$CMDSTATUS
)
"
# bashism
# http://tldp.org/LDP/abs/html/bashver3.html#PIPEFAILREF
...
...
bin/epm-sh-install
View file @
48c6bc04
...
...
@@ -22,7 +22,7 @@ load_helper epm-query
__fast_hack_for_filter_out_installed_rpm
()
{
L
ANG
=
C
L
C_ALL
=
C xargs
-n1
rpm
-q
2>&1 |
grep
'is not installed'
|
LC_ALL
=
C xargs
-n1
rpm
-q
2>&1 |
grep
'is not installed'
|
sed
-e
's|^.*package \(.*\) is not installed.*|\1|g'
}
...
...
bin/epm-whatdepends
View file @
48c6bc04
...
...
@@ -83,7 +83,7 @@ case $PMTYPE in
eopkg
)
showcmd eopkg info
$pkg
# eopkg info prints it only from repo info
L
ANG
=
C eopkg info
$pkg
|
grep
"^Reverse Dependencies"
|
sed
-e
"s|Reverse Dependencies[[:space:]]*: ||"
|
grep
-v
"^$"
L
C_ALL
=
C eopkg info
$pkg
|
grep
"^Reverse Dependencies"
|
sed
-e
"s|Reverse Dependencies[[:space:]]*: ||"
|
grep
-v
"^$"
return
;;
xbps
)
...
...
bin/epm-whatprovides
View file @
48c6bc04
...
...
@@ -32,7 +32,7 @@ case $PMTYPE in
CMD
=
"conary repquery --what-provides"
;;
apt-rpm|apt-dpkg|aptitude-dpkg
)
L
ANG
=
C docmd apt-get
install
--print-uris
$pkg
|
grep
"^Selecting"
|
cut
-f2
-d
" "
L
C_ALL
=
C docmd apt-get
install
--print-uris
$pkg
|
grep
"^Selecting"
|
cut
-f2
-d
" "
return
;;
yum-rpm
)
...
...
bin/serv-status
View file @
48c6bc04
...
...
@@ -62,7 +62,7 @@ is_service_autostart()
fi
# FIXME: check for current runlevel
L
ANG
=
C sudorun chkconfig
$1
--list
|
grep
-q
"[35]:on"
L
C_ALL
=
C sudorun chkconfig
$1
--list
|
grep
-q
"[35]:on"
;;
service-initd|service-update
)
test
-L
"
$(
echo
/etc/rc5.d/S??
$1
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment