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
7bfca544
Commit
7bfca544
authored
Oct 19, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add initial support for windows package manager Npackd
parent
df3a85b9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
0 deletions
+32
-0
epm-addrepo
bin/epm-addrepo
+3
-0
epm-info
bin/epm-info
+4
-0
epm-install
bin/epm-install
+7
-0
epm-packages
bin/epm-packages
+3
-0
epm-query
bin/epm-query
+3
-0
epm-remove
bin/epm-remove
+3
-0
epm-removerepo
bin/epm-removerepo
+3
-0
epm-search
bin/epm-search
+3
-0
epm-sh-functions
bin/epm-sh-functions
+3
-0
No files found.
bin/epm-addrepo
View file @
7bfca544
...
...
@@ -42,6 +42,9 @@ case $PMTYPE in
pacman
)
echo
"You need manually add repo to /etc/pacman.conf"
;;
npackd
)
docmd npackdcl add-repo
--url
=
$pkg_filenames
;;
slackpkg
)
echo
"You need manually add repo to /etc/slackpkg/mirrors"
;;
...
...
bin/epm-info
View file @
7bfca544
...
...
@@ -45,6 +45,10 @@ case $PMTYPE in
pacman
)
docmd pacman
-Si
$pkg_names
;;
npackd
)
# FIXME: --version=
docmd npackdcl info
--package
=
$pkg_names
;;
slackpkg
)
docmd /usr/sbin/slackpkg info
$pkg_names
;;
...
...
bin/epm-install
View file @
7bfca544
...
...
@@ -111,6 +111,10 @@ epm_ni_install_names()
pacman
)
sudocmd pacman
-S
--noconfirm
$@
return
;;
npackd
)
# npackdcl update --package=<package> (remove old and install new)
docmd npackdcl add
--package
=
$@
return
;;
slackpkg
)
# TODO: use upgrade if package is already installed
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes install
$@
...
...
@@ -171,6 +175,9 @@ epm_print_install_command()
slackpkg
)
echo
"/sbin/installpkg
$@
"
;;
npackd
)
echo
"npackdcl add --package=
$@
"
;;
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
;;
...
...
bin/epm-packages
View file @
7bfca544
...
...
@@ -40,6 +40,9 @@ case $PMTYPE in
pacman
)
CMD
=
"pacman -Qs"
;;
npackd
)
CMD
=
"npackdcl list"
;;
slackpkg
)
CMD
=
"ls -1 /var/log/packages/"
;;
...
...
bin/epm-query
View file @
7bfca544
...
...
@@ -37,6 +37,9 @@ case $PMTYPE in
#dpkg -l $pkg_filenames | grep "^ii"
#return
;;
npackd
)
CMD
=
"npackdcl path --package=
$pkg_filenames
"
;;
*
)
epm_packages |
grep
"
$pkg_filenames
"
return
...
...
bin/epm-remove
View file @
7bfca544
...
...
@@ -72,6 +72,9 @@ epm_remove_names()
mpkg
)
sudocmd mpkg remove
$@
return
;;
npackd
)
docmd npackdcl remove
--package
=
$@
return
;;
slackpkg
)
sudocmd /usr/sbin/slackpkg remove
$@
return
;;
...
...
bin/epm-removerepo
View file @
7bfca544
...
...
@@ -42,6 +42,9 @@ case $PMTYPE in
pacman
)
echo
"You need remove repo from /etc/pacman.conf"
;;
npackd
)
docmd npackdcl remove-repo
--url
=
$pkg_filenames
;;
slackpkg
)
echo
"You need remove repo from /etc/slackpkg/mirrors"
;;
...
...
bin/epm-search
View file @
7bfca544
...
...
@@ -49,6 +49,9 @@ case $PMTYPE in
mpkg
)
CMD
=
"mpkg search"
;;
npackd
)
fatal
"FIXME: Have not idea for search with npackdcl list"
;;
slackpkg
)
CMD
=
"/usr/sbin/slackpkg search"
;;
...
...
bin/epm-sh-functions
View file @
7bfca544
...
...
@@ -187,6 +187,9 @@ case $DISTRNAME in
SUSE|SLED|SLES
)
CMD
=
"zypper-rpm"
;;
Windows
)
CMD
=
"npackd"
;;
*
)
fatal
"Do not known DISTRNAME
$DISTRNAME
"
;;
...
...
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