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
548eb868
Commit
548eb868
authored
Oct 17, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-remove: add support for --show-command-only (thanks, bormant)
parent
a85cc1df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
epm-remove
bin/epm-remove
+29
-0
No files found.
bin/epm-remove
View file @
548eb868
...
...
@@ -107,9 +107,38 @@ epm_remove_nonint()
return
5
}
epm_print_remove_command
()
{
case
$PMTYPE
in
apt-rpm|yum-rpm|zypper-rpm|urpm-rpm
)
echo
"rpm -ev
$nodeps
$@
"
;;
apt-dpkg
)
echo
"dpkg -P
$@
"
;;
pkg_add
)
echo
"pkg_delete -r
$@
"
;;
emerge
)
echo
"emerge --unmerge
$@
"
;;
slackpkg
)
echo
"removepkg
$@
"
;;
*
)
fatal
"Do not known appropriate remove command for
$PMTYPE
"
;;
esac
}
epm_remove
()
{
if
[
-n
"
$show_command_only
"
]
;
then
epm_print_remove_command
$pkg_filenames
return
fi
[
-n
"
$pkg_filenames
"
]
||
fatal
"Run remove without args"
epm_remove_low
$pkg_filenames
&&
return
...
...
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