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
1 year ago
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()
...
@@ -862,7 +862,7 @@ get_virt()
fi
fi
# use util-linux
# 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
echo
"kvm"
&&
return
fi
fi
...
...
This diff is collapsed.
Click to expand it.
bin/epm-dedup
View file @
48c6bc04
...
@@ -28,7 +28,7 @@ try_fix_apt_rpm_dupls()
...
@@ -28,7 +28,7 @@ try_fix_apt_rpm_dupls()
sudocmd epm remove
--auto
$TESTPKG
||
return
sudocmd epm remove
--auto
$TESTPKG
||
return
fi
fi
local
PKGLIST
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|'
)
sed
-e
's|W: There are multiple versions of "\(.*\)" in your system.|\1|'
)
local
TODEL
local
TODEL
for
i
in
$PKGLIST
;
do
for
i
in
$PKGLIST
;
do
...
...
This diff is collapsed.
Click to expand it.
bin/epm-install
View file @
48c6bc04
...
@@ -290,7 +290,7 @@ epm_ni_install_names()
...
@@ -290,7 +290,7 @@ epm_ni_install_names()
__epm_check_if_rpm_already_installed
()
__epm_check_if_rpm_already_installed
()
{
{
# Not: we can make optimize if just check version?
# 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
()
__handle_direct_install
()
...
...
This diff is collapsed.
Click to expand it.
bin/epm-play
View file @
48c6bc04
...
@@ -108,8 +108,8 @@ __filter_by_installed_packages()
...
@@ -108,8 +108,8 @@ __filter_by_installed_packages()
remove_on_exit
$pkglist
remove_on_exit
$pkglist
# get intersect between full package list and available packages table
# get intersect between full package list and available packages table
epm
--short
packages |
L
ANG
=
C
sort
-u
>
$pkglist
epm
--short
packages |
L
C_ALL
=
C
sort
-u
>
$pkglist
L
ANG
=
C
join
-11
-21
$tapt
$pkglist
|
uniq
L
C_ALL
=
C
join
-11
-21
$tapt
$pkglist
|
uniq
rm
-f
$pkglist
rm
-f
$pkglist
# rpm on Fedora/CentOS no more print missed packages to stderr
# rpm on Fedora/CentOS no more print missed packages to stderr
...
@@ -125,7 +125,7 @@ __get_installed_table()
...
@@ -125,7 +125,7 @@ __get_installed_table()
local
tapt
local
tapt
tapt
=
"
$(
mktemp
)
"
||
fatal
tapt
=
"
$(
mktemp
)
"
||
fatal
remove_on_exit
$tapt
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
__filter_by_installed_packages
$tapt
rm
-f
$tapt
rm
-f
$tapt
}
}
...
...
This diff is collapsed.
Click to expand it.
bin/epm-requires
View file @
48c6bc04
...
@@ -40,7 +40,7 @@ get_linked_shared_libs()
...
@@ -40,7 +40,7 @@ get_linked_shared_libs()
assure_exists readelf binutils
assure_exists readelf binutils
#is_command readelf || fatal "Can't get required shared library: readelf is missed. Try install binutils package."
#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:]].*||'
#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
()
__epm_elf32_requires
()
...
@@ -92,7 +92,7 @@ epm_requires_files()
...
@@ -92,7 +92,7 @@ epm_requires_files()
;;
;;
eopkg
)
eopkg
)
showcmd eopkg info
$pkg_files
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
)
ELF
)
__epm_elf_requires
$pkg_files
__epm_elf_requires
$pkg_files
...
@@ -123,9 +123,9 @@ case $PMTYPE in
...
@@ -123,9 +123,9 @@ case $PMTYPE in
CMD
=
"apt-cache depends"
CMD
=
"apt-cache depends"
else
else
if
[
-n
"
$short
"
]
;
then
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
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
fi
return
return
fi
fi
...
@@ -186,7 +186,7 @@ case $PMTYPE in
...
@@ -186,7 +186,7 @@ case $PMTYPE in
;;
;;
eopkg
)
eopkg
)
showcmd eopkg info
$pkg_names
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
return
;;
;;
xbps
)
xbps
)
...
...
This diff is collapsed.
Click to expand it.
bin/epm-search
View file @
48c6bc04
...
@@ -93,7 +93,7 @@ case $PMTYPE in
...
@@ -93,7 +93,7 @@ case $PMTYPE in
if
[
-n
"
$verbose
"
]
;
then
if
[
-n
"
$verbose
"
]
;
then
CMD
=
"/usr/sbin/slackpkg search"
CMD
=
"/usr/sbin/slackpkg search"
else
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
return
fi
fi
;;
;;
...
@@ -126,7 +126,7 @@ case $PMTYPE in
...
@@ -126,7 +126,7 @@ case $PMTYPE in
;;
;;
esac
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)|"
epm play
$short
--list-all
|
sed
-e
's|^ *||g'
-e
's|[[:space:]]\+| |g'
-e
"s|
\$
| (use
\'
epm play
\'
to install it)|"
}
}
...
...
This diff is collapsed.
Click to expand it.
bin/epm-sh-functions
View file @
48c6bc04
...
@@ -274,7 +274,7 @@ store_output()
...
@@ -274,7 +274,7 @@ store_output()
local
CMDSTATUS
=
$RC_STDOUT
.pipestatus
local
CMDSTATUS
=
$RC_STDOUT
.pipestatus
echo
1
>
$CMDSTATUS
echo
1
>
$CMDSTATUS
#RC_STDERR=$(mktemp)
#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
)
"
return
"
$(
cat
$CMDSTATUS
)
"
# bashism
# bashism
# http://tldp.org/LDP/abs/html/bashver3.html#PIPEFAILREF
# http://tldp.org/LDP/abs/html/bashver3.html#PIPEFAILREF
...
...
This diff is collapsed.
Click to expand it.
bin/epm-sh-install
View file @
48c6bc04
...
@@ -22,7 +22,7 @@ load_helper epm-query
...
@@ -22,7 +22,7 @@ load_helper epm-query
__fast_hack_for_filter_out_installed_rpm
()
__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'
sed
-e
's|^.*package \(.*\) is not installed.*|\1|g'
}
}
...
...
This diff is collapsed.
Click to expand it.
bin/epm-whatdepends
View file @
48c6bc04
...
@@ -83,7 +83,7 @@ case $PMTYPE in
...
@@ -83,7 +83,7 @@ case $PMTYPE in
eopkg
)
eopkg
)
showcmd eopkg info
$pkg
showcmd eopkg info
$pkg
# eopkg info prints it only from repo info
# 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
return
;;
;;
xbps
)
xbps
)
...
...
This diff is collapsed.
Click to expand it.
bin/epm-whatprovides
View file @
48c6bc04
...
@@ -32,7 +32,7 @@ case $PMTYPE in
...
@@ -32,7 +32,7 @@ case $PMTYPE in
CMD
=
"conary repquery --what-provides"
CMD
=
"conary repquery --what-provides"
;;
;;
apt-rpm|apt-dpkg|aptitude-dpkg
)
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
return
;;
;;
yum-rpm
)
yum-rpm
)
...
...
This diff is collapsed.
Click to expand it.
bin/serv-status
View file @
48c6bc04
...
@@ -62,7 +62,7 @@ is_service_autostart()
...
@@ -62,7 +62,7 @@ is_service_autostart()
fi
fi
# FIXME: check for current runlevel
# 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
)
service-initd|service-update
)
test
-L
"
$(
echo
/etc/rc5.d/S??
$1
)
"
test
-L
"
$(
echo
/etc/rc5.d/S??
$1
)
"
...
...
This diff is collapsed.
Click to expand it.
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