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
afe8fa0f
Commit
afe8fa0f
authored
Oct 26, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-simulate: print result of the check
parent
4e48fd82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
epm-simulate
bin/epm-simulate
+18
-7
No files found.
bin/epm-simulate
View file @
afe8fa0f
...
...
@@ -21,15 +21,10 @@
load_helper epm-install
load_helper epm-search
epm
_simulate
()
_epm_do
_simulate
()
{
local
CMD
[
-z
"
$pkg_filenames
"
]
&&
echo
"Skip empty list"
&&
return
2
local
filenames
=
"
$(
echo
$pkg_filenames
| filter_out_installed_packages
)
"
[
-z
"
$filenames
"
]
&&
echo
"All packages are already installed"
&&
return
2
local
filenames
=
$@
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
CMD
=
"apt-get --simulate install"
...
...
@@ -70,3 +65,19 @@ epm_simulate()
sudocmd
$CMD
$filenames
}
epm_simulate
()
{
[
-z
"
$pkg_filenames
"
]
&&
echo
"Skip empty list"
&&
return
2
local
filenames
=
"
$(
echo
$pkg_filenames
| filter_out_installed_packages
)
"
[
-z
"
$filenames
"
]
&&
echo
"All packages are already installed"
&&
return
2
_epm_do_simulate
$filenames
local
RES
=
$?
if
[
-z
"
$quiet
"
]
;
then
[
"
$RES
"
=
0
]
&&
echo
"Result:
$filenames
package(s) CAN BE installed"
||
echo
"Result: There are PROBLEMS with install some package(s)"
fi
return
$RES
}
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