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
f4003d1a
Commit
f4003d1a
authored
Sep 06, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
realize assure_exists (install needed package for needed command), use it in the project,
remove mandatory requires to apt-repo
parent
e4fccbad
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
38 additions
and
3 deletions
+38
-3
epm-addrepo
bin/epm-addrepo
+1
-0
epm-autoremove
bin/epm-autoremove
+1
-0
epm-filelist
bin/epm-filelist
+4
-0
epm-kernel_update
bin/epm-kernel_update
+1
-0
epm-provides
bin/epm-provides
+1
-0
epm-query_file
bin/epm-query_file
+2
-0
epm-removerepo
bin/epm-removerepo
+1
-0
epm-repolist
bin/epm-repolist
+1
-0
epm-search_file
bin/epm-search_file
+1
-0
epm-sh-functions
bin/epm-sh-functions
+23
-0
epm-whatdepends
bin/epm-whatdepends
+1
-0
eepm.spec
eepm.spec
+1
-3
No files found.
bin/epm-addrepo
View file @
f4003d1a
...
...
@@ -21,6 +21,7 @@ epm_addrepo()
{
case
$PMTYPE
in
apt-rpm
)
assure_exists apt-repo
sudocmd apt-repo add
$pkg_filenames
;;
apt-dpkg
)
...
...
bin/epm-autoremove
View file @
f4003d1a
...
...
@@ -21,6 +21,7 @@ epm_autoremove()
{
case
$PMTYPE
in
apt-rpm
)
assure_exists remove-old-kernels
# ALT Linux only
sudocmd remove-old-kernels
;;
...
...
bin/epm-filelist
View file @
f4003d1a
...
...
@@ -70,6 +70,10 @@ __epm_filelist_name()
docmd pacman
-Ql
$pkg_names
|
sed
-e
"s|.* ||g"
return
;;
emerge
)
assure_exists equery
CMD
=
"equery files"
;;
slackpkg
)
is_installed
$pkg_names
||
fatal
"Query filelist for non installed packages does not realized"
docmd
awk
'BEGIN{desk=1}{if(/^FILE LIST:$/){desk=0} else if (desk==0) {print}}'
/var/log/packages/
${
pkg_filenames
}*
...
...
bin/epm-kernel_update
View file @
f4003d1a
...
...
@@ -23,6 +23,7 @@ epm_kernel_update()
case
$DISTRNAME
in
ALTLinux
)
assure_exists update-kernel
sudocmd update-kernel
return
;;
esac
...
...
bin/epm-provides
View file @
f4003d1a
...
...
@@ -58,6 +58,7 @@ case $PMTYPE in
fi
;;
emerge
)
assure_exists equery
CMD
=
"equery files"
;;
# yum-rpm)
...
...
bin/epm-query_file
View file @
f4003d1a
...
...
@@ -79,6 +79,7 @@ __do_query()
CMD
=
"rpm -qf"
;;
emerge
)
assure_exists equery
CMD
=
"equery belongs"
;;
pacman
)
...
...
@@ -116,6 +117,7 @@ __do_short_query()
dpkg_print_name_version
$(
dpkg
-S
$1
|
sed
-e
"s|:.*||"
|
grep
-v
"^diversion by"
)
return
;;
NOemerge
)
assure_exists equery
CMD
=
"equery belongs"
;;
NOpacman
)
...
...
bin/epm-removerepo
View file @
f4003d1a
...
...
@@ -21,6 +21,7 @@ epm_removerepo()
{
case
$PMTYPE
in
apt-rpm
)
assure_exists apt-repo
sudocmd apt-repo
rm
$pkg_filenames
;;
apt-dpkg
)
...
...
bin/epm-repolist
View file @
f4003d1a
...
...
@@ -32,6 +32,7 @@ epm_repolist()
{
case
$PMTYPE
in
apt-rpm
)
assure_exists apt-repo
docmd apt-repo list
;;
deepsolver-rpm
)
...
...
bin/epm-search_file
View file @
f4003d1a
...
...
@@ -50,6 +50,7 @@ case $PMTYPE in
local_content_search
$pkg_filenames
return
;;
apt-dpkg
)
assure_exists apt-file
sudocmd apt-file update
docmd apt-file search
$pkg_filenames
return
;;
...
...
bin/epm-sh-functions
View file @
f4003d1a
...
...
@@ -219,6 +219,29 @@ set_sudo()
SUDO
=
"fatal 'Can't find sudo. Please install sudo or run epm under root.'"
}
assure_exists
()
{
PATH
=
$PATH
:/sbin:/usr/sbin which
$1
2>/dev/null
>
/dev/null
&&
return
echo
"Install appropriate package for
$1
command..."
case
$1
in
equery
)
epm
install
gentoolkit
;;
apt-repo
)
epm
install
apt-repo
;;
apt-file
)
epm
install
apt-file
;;
update-kernel|remove-old-kernels
)
epm
install
update-kernel
;;
*
)
fatal
"Internal error: Unknown binary
$1
to check if exists"
;;
esac
}
# print options description from HELPCMD/HELPOPT lines in the code
get_help
()
{
...
...
bin/epm-whatdepends
View file @
f4003d1a
...
...
@@ -34,6 +34,7 @@ case $PMTYPE in
CMD
=
"repoquery --whatrequires"
;;
emerge
)
assure_exists equery
CMD
=
"equery depends -a"
;;
*
)
...
...
eepm.spec
View file @
f4003d1a
...
...
@@ -20,9 +20,7 @@ Conflicts: epm
Provides: upm
%if %_vendor == "alt"
Requires: apt rpm apt-repo
%endif
Requires: apt rpm
%description
Etersoft EPM is the package manager for any platform
...
...
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