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
b2b0b2f8
Commit
b2b0b2f8
authored
Feb 20, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update packed
parent
7c031820
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
epm.sh
packed/epm.sh
+40
-2
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
b2b0b2f8
...
...
@@ -520,12 +520,49 @@ check_pkg_integrity()
local
EXT
=
`
echo
"
$1
"
|
sed
-e
"s|.*
\.\(
[a-z0-9]*
\)\$
|
\1
|g"
`
local
PKG
=
"
$1
"
local
RET
# TODO: Попробовать здесь оставить возможность перегрузки функций
case
$EXT
in
rpm
)
docmd rpm
--checksig
$@
;;
deb
)
# FIXME: debsums -ca package ?
docmd dpkg
--contents
$@
;;
bz2
)
docmd bunzip
-t
$1
;;
#*)
# fatal "Unknown package extension '$EXT' in $PKG package"
# ;;
esac
check_
${
EXT
}
_integrity
"
$PKG
"
||
fatal
"Unknown package extension '
$EXT
' in
$PKG
package"
}
__epm_check_installed_pkg
()
{
case
$PMTYPE
in
*
-rpm
)
docmd rpm
-V
$@
;;
*
-dpkg
)
docmd debsums
$@
;;
*
)
fatal
"Do not known command for
$PMTYPE
"
;;
esac
}
epm_checkpkg
()
{
if
[
-n
"
$pkg_names
"
]
;
then
__epm_check_installed_pkg
$pkg_names
return
fi
[
-n
"
$pkg_files
"
]
||
fatal
"Run without names"
local
pkg
for
pkg
in
$pkg_files
;
do
...
...
@@ -1839,6 +1876,7 @@ _epm_do_simulate()
# FIXME: check only error output
LC_ALL
=
C sudocmd yum
--assumeno
install
$filenames
2>&1 |
grep
"^No package"
&&
return
1
LC_ALL
=
C sudocmd yum
--assumeno
install
$filenames
2>&1 |
grep
"^Complete!"
&&
return
0
LC_ALL
=
C sudocmd yum
--assumeno
install
$filenames
2>&1 |
grep
"^Exiting on user Command"
&&
return
0
LC_ALL
=
C sudocmd yum
--assumeno
install
$filenames
>
/dev/null 2>&1
||
return
else
LC_ALL
=
C
echo
n | sudocmd yum
install
$filenames
...
...
@@ -2340,7 +2378,7 @@ $(get_help HELPOPT)
print_version
()
{
echo
"EPM package manager version 1.2.
1
"
echo
"EPM package manager version 1.2.
2
"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
@@ -2550,7 +2588,7 @@ for opt in "$@" ; do
check_command
$opt
&&
continue
check_option
$opt
&&
continue
if
[
-f
"
$opt
"
]
;
then
if
[
-f
"
$opt
"
]
&&
echo
$opt
|
grep
-q
"
\.
"
;
then
pkg_files
=
"
$pkg_files
$opt
"
else
pkg_names
=
"
$pkg_names
$opt
"
...
...
packed/serv.sh
View file @
b2b0b2f8
...
...
@@ -920,7 +920,7 @@ $(get_help HELPOPT)
print_version
()
{
echo
"Service manager version 1.2.
1
"
echo
"Service manager version 1.2.
2
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
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