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
Vladislav
eepm
Commits
0fd3c487
Commit
0fd3c487
authored
Aug 07, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
backported to M60P as 0.9.7-alt0.M60P.1 (with rpmbph script)
parents
2eea0cdd
b5a7dbeb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
15 deletions
+21
-15
epm-install
bin/epm-install
+8
-8
epm-query
bin/epm-query
+1
-1
epm-query_package
bin/epm-query_package
+1
-1
epm-simulate
bin/epm-simulate
+3
-3
eepm.spec
eepm.spec
+8
-2
No files found.
bin/epm-install
View file @
0fd3c487
...
...
@@ -47,6 +47,11 @@ filter_out_installed_packages()
# copied from etersoft-build-utils/share/eterbuild/functions/rpmpkg
epm_install_names
()
{
if
[
-n
"
$non_interactive
"
]
;
then
epm_ni_install_names
"
$@
"
return
fi
[
-z
"
$1
"
]
&&
return
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
...
...
@@ -137,7 +142,7 @@ epm_install_files()
docmd
$SUDO
pkg_add
$@
return
;;
pacman
)
docmd
$SUDO
pacman
-U
$@
docmd
$SUDO
pacman
-U
--noconfirm
$@
return
;;
slackpkg
)
docmd
$SUDO
installpkg
$@
...
...
@@ -145,7 +150,7 @@ epm_install_files()
esac
# other systems can install file package via ordinary command
epm_install_names
$@
epm_install_names
"
$@
"
}
epm_print_install_command
()
...
...
@@ -187,11 +192,6 @@ epm_install()
[
-z
"
$files$names
"
]
&&
echo
"Skip empty install list"
&&
return
2
if
[
-n
"
$non_interactive
"
]
;
then
epm_ni_install_names
$names
||
return
else
epm_install_names
$names
||
return
fi
epm_install_names
$names
||
return
epm_install_files
$files
}
bin/epm-query
View file @
0fd3c487
...
...
@@ -38,7 +38,7 @@ case $PMTYPE in
#return
;;
*
)
epm_packages
$pkg_filenames
|
grep
"
$pkg_filenames
"
epm_packages |
grep
"
$pkg_filenames
"
;;
esac
...
...
bin/epm-query_package
View file @
0fd3c487
...
...
@@ -23,5 +23,5 @@ load_helper epm-packages
epm_query_package
()
{
#showcmd grep --color "$pkg_filenames"
epm_packages |
grep
--color
"
$pkg_filenames
"
pkg_filenames
=
epm_packages |
grep
--color
"
$pkg_filenames
"
}
bin/epm-simulate
View file @
0fd3c487
...
...
@@ -23,11 +23,11 @@ load_helper epm-install
epm_simulate
()
{
local
CMD
[
-z
"
$pkg_filenames
"
]
&&
echo
"Skip empty list"
&&
return
0
[
-z
"
$pkg_filenames
"
]
&&
echo
"Skip empty list"
&&
return
2
local
filenames
=
"
$(
echo
$pkg_filenames
| filter_out_installed_packages
)
"
# FIXME: can't correct receive status 2 in mandriva?
[
-z
"
$filenames
"
]
&&
echo
"All packages are already installed"
&&
return
0
#&& return
2
[
-z
"
$filenames
"
]
&&
echo
"All packages are already installed"
&&
return
2
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
...
...
eepm.spec
View file @
0fd3c487
# This spec is backported to ALTLinux p6 automatically by rpmbph script. Do not edit it.
#
Name: eepm
Version: 0.9.
6
Version: 0.9.
7
Release: alt0.M60P.1
Summary: Etersoft EPM package manager
...
...
@@ -47,9 +47,15 @@ with various distros.
%_bindir/distr_info
%changelog
*
Mon Aug 06 2012 Vitaly Lipatov <lav@altlinux.ru> 0.9.6
-alt0.M60P.1
*
Tue Aug 07 2012 Vitaly Lipatov <lav@altlinux.ru> 0.9.7
-alt0.M60P.1
- backport to ALTLinux p6 (by rpmbph script)
* Tue Aug 07 2012 Vitaly Lipatov <lav@altlinux.ru> 0.9.7-alt1
- epm: fix use epm_packages
- simulate: return 2 if have no work
- install: support --auto for install files too
- install: run pacman for files with --noconfirm
* Mon Aug 06 2012 Vitaly Lipatov <lav@altlinux.ru> 0.9.6-alt1
- query: default realization via epm package list
- simulate: it is ok to run with empty list
...
...
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