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
82a4b904
Commit
82a4b904
authored
Jul 17, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add packed files
parent
653e2d35
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
epm.sh
packed/epm.sh
+16
-2
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
82a4b904
...
@@ -611,6 +611,7 @@ __epm_changelog_files()
...
@@ -611,6 +611,7 @@ __epm_changelog_files()
# TODO: detect every file
# TODO: detect every file
case
$(
get_package_type
$1
)
in
case
$(
get_package_type
$1
)
in
rpm
)
rpm
)
assure_exists rpm
docmd_foreach
"rpm -p --changelog"
$@
| less
docmd_foreach
"rpm -p --changelog"
$@
| less
;;
;;
*
)
*
)
...
@@ -755,9 +756,11 @@ check_pkg_integrity()
...
@@ -755,9 +756,11 @@ check_pkg_integrity()
case
$(
get_package_type
$PKG
)
in
case
$(
get_package_type
$PKG
)
in
rpm
)
rpm
)
assure_exists rpm
docmd rpm
--checksig
$PKG
docmd rpm
--checksig
$PKG
;;
;;
deb
)
deb
)
assure_exists dpkg
# FIXME: debsums -ca package ?
# FIXME: debsums -ca package ?
docmd dpkg
--contents
$PKG
>
/dev/null
&&
echo
"Package
$PKG
is correct."
docmd dpkg
--contents
$PKG
>
/dev/null
&&
echo
"Package
$PKG
is correct."
;;
;;
...
@@ -891,6 +894,7 @@ epm_conflicts_files()
...
@@ -891,6 +894,7 @@ epm_conflicts_files()
case
$(
get_package_type
$pkg_files
)
in
case
$(
get_package_type
$pkg_files
)
in
rpm
)
rpm
)
assure_exists rpm
docmd
"rpm -q --conflicts -p"
$pkg_files
docmd
"rpm -q --conflicts -p"
$pkg_files
;;
;;
#deb)
#deb)
...
@@ -1065,9 +1069,11 @@ __epm_filelist_file()
...
@@ -1065,9 +1069,11 @@ __epm_filelist_file()
# TODO: allow a new packages
# TODO: allow a new packages
case
$(
get_package_type
$1
)
in
case
$(
get_package_type
$1
)
in
rpm
)
rpm
)
assure_exists rpm
CMD
=
"rpm -qlp"
CMD
=
"rpm -qlp"
;;
;;
deb
)
deb
)
assure_exists dpkg
CMD
=
"dpkg --contents"
CMD
=
"dpkg --contents"
;;
;;
*
)
*
)
...
@@ -1872,9 +1878,11 @@ epm_provides_files()
...
@@ -1872,9 +1878,11 @@ epm_provides_files()
case
$PKGTYPE
in
case
$PKGTYPE
in
rpm
)
rpm
)
assure_exists rpm
docmd rpm
-q
--provides
-p
$pkg_files
docmd rpm
-q
--provides
-p
$pkg_files
;;
;;
deb
)
deb
)
assure_exists dpkg
# FIXME: will we provide ourself?
# FIXME: will we provide ourself?
docmd dpkg
-I
$pkg_files
|
grep
"^ *Provides:"
|
sed
"s|^ *Provides:||g"
docmd dpkg
-I
$pkg_files
|
grep
"^ *Provides:"
|
sed
"s|^ *Provides:||g"
;;
;;
...
@@ -2705,9 +2713,11 @@ epm_requires_files()
...
@@ -2705,9 +2713,11 @@ epm_requires_files()
case
"
$PKGTYPE
"
in
case
"
$PKGTYPE
"
in
rpm
)
rpm
)
assure_exists rpm
docmd rpm
-q
--requires
-p
$pkg_files
docmd rpm
-q
--requires
-p
$pkg_files
;;
;;
deb
)
deb
)
assure_exists dpkg
a
=
docmd dpkg
-I
$pkg_files
|
grep
"^ *Depends:"
|
sed
"s|^ *Depends:||g"
a
=
docmd dpkg
-I
$pkg_files
|
grep
"^ *Depends:"
|
sed
"s|^ *Depends:||g"
;;
;;
*
)
*
)
...
@@ -3688,7 +3698,7 @@ $(get_help HELPOPT)
...
@@ -3688,7 +3698,7 @@ $(get_help HELPOPT)
print_version
()
print_version
()
{
{
echo
"EPM package manager version 1.5.
5
"
echo
"EPM package manager version 1.5.
6
"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2014"
echo
"Copyright (c) Etersoft 2012-2014"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
@@ -3920,6 +3930,7 @@ check_option()
...
@@ -3920,6 +3930,7 @@ check_option()
short
=
"--short"
short
=
"--short"
;;
;;
--sort
)
# HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
--sort
)
# HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
# TODO: how to read arg?
sort
=
"
$1
"
sort
=
"
$1
"
;;
;;
--auto
)
# HELPOPT: non interactive mode
--auto
)
# HELPOPT: non interactive mode
...
@@ -3934,7 +3945,8 @@ check_option()
...
@@ -3934,7 +3945,8 @@ check_option()
check_filenames
()
check_filenames
()
{
{
local
opt
=
"
$1
"
local
opt
for
opt
in
$*
;
do
# files can be with full path or have extension via .
# files can be with full path or have extension via .
if
[
-f
"
$opt
"
]
&&
echo
"
$opt
"
|
grep
-q
"[/
\.
]"
;
then
if
[
-f
"
$opt
"
]
&&
echo
"
$opt
"
|
grep
-q
"[/
\.
]"
;
then
pkg_files
=
"
$pkg_files
$opt
"
pkg_files
=
"
$pkg_files
$opt
"
...
@@ -3942,6 +3954,7 @@ check_filenames()
...
@@ -3942,6 +3954,7 @@ check_filenames()
pkg_names
=
"
$pkg_names
$opt
"
pkg_names
=
"
$pkg_names
$opt
"
fi
fi
quoted_args
=
"
$quoted_args
\"
$opt
\"
"
quoted_args
=
"
$quoted_args
\"
$opt
\"
"
done
}
}
FLAGENDOPTS
=
FLAGENDOPTS
=
...
@@ -3951,6 +3964,7 @@ for opt in "$@" ; do
...
@@ -3951,6 +3964,7 @@ for opt in "$@" ; do
check_command
$opt
&&
continue
check_command
$opt
&&
continue
check_option
$opt
&&
continue
check_option
$opt
&&
continue
fi
fi
# Note: will parse all params separately (no package names with spaces!)
check_filenames
$opt
check_filenames
$opt
done
done
...
...
packed/serv.sh
View file @
82a4b904
...
@@ -1118,7 +1118,7 @@ $(get_help HELPOPT)
...
@@ -1118,7 +1118,7 @@ $(get_help HELPOPT)
print_version
()
print_version
()
{
{
echo
"Service manager version 1.5.
5
"
echo
"Service manager version 1.5.
6
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
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