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
3574ffa9
Commit
3574ffa9
authored
Aug 02, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix slackpkg install/reinstall/remove/simulate
parent
6709bdbf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
2 deletions
+14
-2
epm-install
bin/epm-install
+3
-1
epm-reinstall
bin/epm-reinstall
+3
-0
epm-remove
bin/epm-remove
+3
-0
epm-search_file
bin/epm-search_file
+3
-0
epm-simulate
bin/epm-simulate
+2
-1
No files found.
bin/epm-install
View file @
3574ffa9
...
@@ -74,6 +74,7 @@ epm_install_names()
...
@@ -74,6 +74,7 @@ epm_install_names()
docmd
$SUDO
mpkg
install
$@
docmd
$SUDO
mpkg
install
$@
return
;;
return
;;
slackpkg
)
slackpkg
)
# TODO: use upgrade if package is already installed
docmd
$SUDO
slackpkg
install
$@
docmd
$SUDO
slackpkg
install
$@
return
;;
return
;;
*
)
*
)
...
@@ -106,7 +107,8 @@ epm_ni_install_names()
...
@@ -106,7 +107,8 @@ epm_ni_install_names()
docmd
$SUDO
pacman
-S
--noconfirm
$@
docmd
$SUDO
pacman
-S
--noconfirm
$@
return
;;
return
;;
slackpkg
)
slackpkg
)
docmd
$SUDO
slackpkg
install
$@
# TODO: use upgrade if package is already installed
docmd
$SUDO
slackpkg
-batch
=
on
-default_answer
=
yes install
$@
return
;;
return
;;
*
)
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
fatal
"Do not known appropriate install command for
$PMTYPE
"
...
...
bin/epm-reinstall
View file @
3574ffa9
...
@@ -62,6 +62,9 @@ epm_reinstall_files()
...
@@ -62,6 +62,9 @@ epm_reinstall_files()
apt-pkg
)
apt-pkg
)
docmd
$SUDO
dpkg
-i
$@
docmd
$SUDO
dpkg
-i
$@
return
;;
return
;;
slackpkg
)
docmd
$SUDO
installpkg
$@
return
;;
esac
esac
# other systems can install file package via ordinary command
# other systems can install file package via ordinary command
...
...
bin/epm-remove
View file @
3574ffa9
...
@@ -119,6 +119,9 @@ epm_remove_nonint()
...
@@ -119,6 +119,9 @@ epm_remove_nonint()
zypper-rpm
)
zypper-rpm
)
docmd
$SUDO
zypper
--non-interactive
remove
$@
docmd
$SUDO
zypper
--non-interactive
remove
$@
return
;;
return
;;
slackpkg
)
docmd
$SUDO
slackpkg
-batch
=
on
-default_answer
=
yes
remove
$@
return
;;
*
)
*
)
fatal
"Do not known command for
$PMTYPE
"
fatal
"Do not known command for
$PMTYPE
"
;;
;;
...
...
bin/epm-search_file
View file @
3574ffa9
...
@@ -39,6 +39,9 @@ case $PMTYPE in
...
@@ -39,6 +39,9 @@ case $PMTYPE in
pacman
)
pacman
)
CMD
=
"pacman -Qo"
CMD
=
"pacman -Qo"
;;
;;
slackpkg
)
CMD
=
"slackpkg file-search"
;;
*
)
*
)
fatal
"Do not known search file command for
$PMTYPE
"
fatal
"Do not known search file command for
$PMTYPE
"
;;
;;
...
...
bin/epm-simulate
View file @
3574ffa9
...
@@ -50,7 +50,8 @@ epm_simulate()
...
@@ -50,7 +50,8 @@ epm_simulate()
echo
no |
$SUDO
pacman
-v
-S
$filenames
echo
no |
$SUDO
pacman
-v
-S
$filenames
return
;;
return
;;
slackpkg
)
slackpkg
)
return
0
;;
docmd slackpkg
-batch
=
on
-default_answer
=
yes
download
;;
*
)
*
)
fatal
"Do not known simulate command for
$PMTYPE
"
fatal
"Do not known simulate command for
$PMTYPE
"
;;
;;
...
...
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