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
Nurlan
eepm
Commits
0b13cf4a
Commit
0b13cf4a
authored
Aug 04, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-install: add show-command-only support
parent
7475731d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
epm
bin/epm
+4
-0
epm-install
bin/epm-install
+29
-0
No files found.
bin/epm
View file @
0b13cf4a
...
...
@@ -64,6 +64,7 @@ quiet=
nodeps
=
non_interactive
=
skip_installed
=
show_command_only
=
epm_cmd
=
pkg_files
=
pkg_names
=
...
...
@@ -182,6 +183,9 @@ for opt in "$@" ; do
--skip-installed
)
# HELPOPT: skip already install during install
skip_installed
=
1
;;
--show-command-only
)
# HELPOPT: show command only, do not any action
show_command_only
=
1
;;
--quiet
)
# HELPOPT: quiet mode (do not print commands before exec)
quiet
=
1
;;
...
...
bin/epm-install
View file @
0b13cf4a
...
...
@@ -151,9 +151,38 @@ epm_install_files()
epm_install_names
$@
}
epm_print_install_command
()
{
case
$PMTYPE
in
apt-rpm|yum-rpm|urpm-rpm|zypper-rpm
)
echo
"rpm -Uvh --force
$nodeps
$@
"
;;
apt-dpkg
)
echo
"dpkg -i
$@
"
;;
pkg_add
)
echo
"pkg_add
$@
"
;;
pacman
)
echo
"pacman -U --noconfirm
$@
"
;;
slackpkg
)
echo
"installpkg
$@
"
;;
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
;;
esac
}
epm_install
()
{
if
[
-n
"
$show_command_only
"
]
;
then
epm_print_install_command
$names
return
fi
[
-n
"
$pkg_files$pkg_names
"
]
||
fatal
"Run install without packages"
local
names
=
"
$(
echo
$pkg_names
| filter_out_installed_packages
)
"
...
...
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