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
de092e93
Commit
de092e93
authored
Jul 28, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-simulate: add support for --skip-installed
parent
1c4f4a3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
epm-simulate
bin/epm-simulate
+7
-3
No files found.
bin/epm-simulate
View file @
de092e93
...
...
@@ -18,12 +18,16 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
load_helper epm-install
epm_simulate
()
{
local
CMD
[
-n
"
$pkg_filenames
"
]
||
fatal
"Run
$epm_cmd
without packages"
local
filenames
=
$(
echo
$pkg_filenames
| filter_out_installed_packages
)
[
-z
"
$filenames
"
]
&&
echo
"Skip empty simulate list"
&&
return
2
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
CMD
=
"apt-get --simulate install"
...
...
@@ -41,8 +45,8 @@ epm_simulate()
echo
"FIXME: Skip with emerge"
return
;;
pacman
)
showcmd
$SUDO
pacman
-v
-S
$
pkg_
filenames
echo
no |
$SUDO
pacman
-v
-S
$
pkg_
filenames
showcmd
$SUDO
pacman
-v
-S
$filenames
echo
no |
$SUDO
pacman
-v
-S
$filenames
return
;;
pkgtool
)
return
0
;;
...
...
@@ -51,6 +55,6 @@ epm_simulate()
;;
esac
docmd
$SUDO
$CMD
$
pkg_
filenames
docmd
$SUDO
$CMD
$filenames
}
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