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
641f9670
Commit
641f9670
authored
Apr 30, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: use set_sudo before store_output to fix sudo with password issue
parent
da0965ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
epm-remove
bin/epm-remove
+1
-0
epm-simulate
bin/epm-simulate
+3
-0
No files found.
bin/epm-remove
View file @
641f9670
...
...
@@ -43,6 +43,7 @@ epm_remove_low()
*
-rpm
)
cd
/tmp
||
fatal
__epm_check_vendor
$@
set_sudo
store_output sudocmd rpm
-ev
$noscripts
$nodeps
$@
# rpm returns number of packages if failed on removing
__check_rpm_e_result
$RC_STDOUT
$?
...
...
bin/epm-simulate
View file @
641f9670
...
...
@@ -67,6 +67,7 @@ _epm_do_simulate()
CMD
=
"aptitude -s install"
;;
yum-rpm
)
set_sudo
if
__use_yum_assumeno
;
then
store_output sudocmd yum
--assumeno
install
$filenames
__check_yum_result
$RC_STDOUT
$?
...
...
@@ -80,6 +81,7 @@ EOF
clean_store_output
return
$RES
;;
dnf-rpm
)
set_sudo
store_output sudocmd dnf
--assumeno
install
$filenames
__check_yum_result
$RC_STDOUT
$?
RES
=
$?
...
...
@@ -110,6 +112,7 @@ EOF
docmd
--noaction
install
$filenames
return
$res
;;
pacman
)
set_sudo
store_output sudocmd pacman
-v
-S
$filenames
<<
EOF
no
EOF
...
...
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