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
22d78ade
Commit
22d78ade
authored
Mar 08, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always run store_output with LANG=C
parent
8564117c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
epm-sh-functions
bin/epm-sh-functions
+1
-1
epm-simulate
bin/epm-simulate
+4
-4
No files found.
bin/epm-sh-functions
View file @
22d78ade
...
...
@@ -207,7 +207,7 @@ store_output()
local
CMDSTATUS
=
$RC_STDOUT
.pipestatus
echo
1
>
$CMDSTATUS
#RC_STDERR=$(mktemp)
(
$@
2>&1
;
echo
$?
>
$CMDSTATUS
)
|
tee
$RC_STDOUT
(
LANG
=
C
$@
2>&1
;
echo
$?
>
$CMDSTATUS
)
|
tee
$RC_STDOUT
return
"
$(
cat
$CMDSTATUS
)
"
# bashism
# http://tldp.org/LDP/abs/html/bashver3.html#PIPEFAILREF
...
...
bin/epm-simulate
View file @
22d78ade
...
...
@@ -68,10 +68,10 @@ _epm_do_simulate()
;;
yum-rpm
)
if
__use_yum_assumeno
;
then
LC_ALL
=
C
store_output sudocmd yum
--assumeno
install
$filenames
store_output sudocmd yum
--assumeno
install
$filenames
__check_yum_result
$RC_STDOUT
$?
else
LC_ALL
=
C
store_output sudocmd yum
install
$filenames
<<
EOF
store_output sudocmd yum
install
$filenames
<<
EOF
n
EOF
__check_yum_result
$RC_STDOUT
$?
...
...
@@ -80,7 +80,7 @@ EOF
clean_store_output
return
$RES
;;
dnf-rpm
)
LC_ALL
=
C
store_output sudocmd dnf
--assumeno
install
$filenames
store_output sudocmd dnf
--assumeno
install
$filenames
__check_yum_result
$RC_STDOUT
$?
RES
=
$?
clean_store_output
...
...
@@ -107,7 +107,7 @@ EOF
docmd
--noaction
install
$filenames
return
$res
;;
pacman
)
LC_ALL
=
C
store_output sudocmd pacman
-v
-S
$filenames
<<
EOF
store_output sudocmd pacman
-v
-S
$filenames
<<
EOF
no
EOF
__check_pacman_result
$RC_STDOUT
$?
...
...
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