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
e1113090
Commit
e1113090
authored
Mar 13, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
backported to p8 as 2.0.6-alt0.M80P.1 (with rpmbph script)
parents
1e1ab246
6dba764e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
14 deletions
+23
-14
epm
bin/epm
+6
-6
epm-packages
bin/epm-packages
+2
-2
epm-policy
bin/epm-policy
+4
-2
epm-sh-altlinux
bin/epm-sh-altlinux
+5
-2
eepm.spec
eepm.spec
+6
-2
No files found.
bin/epm
View file @
e1113090
...
@@ -158,7 +158,7 @@ check_command()
...
@@ -158,7 +158,7 @@ check_command()
-i
|
install
|
add|i
)
# HELPCMD: install package(s) from remote repositories or from local file
-i
|
install
|
add|i
)
# HELPCMD: install package(s) from remote repositories or from local file
epm_cmd
=
install
epm_cmd
=
install
;;
;;
-e
|
-P
|
remove|delete|uninstall|erase|e
)
# HELPCMD: remove (delete) package(s) from the database and the system
-e
|
-P
|
r
m
|
del|r
emove|delete|uninstall|erase|e
)
# HELPCMD: remove (delete) package(s) from the database and the system
epm_cmd
=
remove
epm_cmd
=
remove
;;
;;
-s
|
search|s
)
# HELPCMD: search in remote package repositories
-s
|
search|s
)
# HELPCMD: search in remote package repositories
...
@@ -190,7 +190,7 @@ check_command()
...
@@ -190,7 +190,7 @@ check_command()
check|fix|verify
)
# HELPCMD: check local package base integrity and fix it
check|fix|verify
)
# HELPCMD: check local package base integrity and fix it
epm_cmd
=
check
epm_cmd
=
check
;;
;;
changelog|cl|-cl
)
# HELPCMD: show changelog for package
-cl
|
cl|changelog
)
# HELPCMD: show changelog for package
epm_cmd
=
changelog
epm_cmd
=
changelog
;;
;;
-qi
|
qi|info|show
)
# HELPCMD: print package detail info
-qi
|
qi|info|show
)
# HELPCMD: print package detail info
...
@@ -211,13 +211,13 @@ check_command()
...
@@ -211,13 +211,13 @@ check_command()
conflicts
)
# HELPCMD: print package conflicts
conflicts
)
# HELPCMD: print package conflicts
epm_cmd
=
conflicts
epm_cmd
=
conflicts
;;
;;
-qa
|
list|packages|-l|qa
)
# HELPCMD: print list of installed package(s)
-qa
|
qa|-l|list|packages
)
# HELPCMD: print list of installed package(s)
epm_cmd
=
packages
epm_cmd
=
packages
;;
;;
programs
)
# HELPCMD: print list of installed GUI program(s)
programs
)
# HELPCMD: print list of installed GUI program(s)
(they have .desktop files)
epm_cmd
=
programs
epm_cmd
=
programs
;;
;;
assure
)
# HELPCMD: <command> [package]: install package if command does not exist
s
assure
)
# HELPCMD: <command> [package]: install package if command does not exist
epm_cmd
=
assure
epm_cmd
=
assure
;;
;;
policy
)
# HELPCMD: print detailed information about the priority selection of package
policy
)
# HELPCMD: print detailed information about the priority selection of package
...
@@ -284,7 +284,7 @@ check_command()
...
@@ -284,7 +284,7 @@ check_command()
site|url
)
# HELPCMD: open package's site in a browser (use -p for open packages.altlinux.org site)
site|url
)
# HELPCMD: open package's site in a browser (use -p for open packages.altlinux.org site)
epm_cmd
=
site
epm_cmd
=
site
;;
;;
ei|epminstall|epm-install|selfinstall
)
# HELPCMD: install or update eepm from all in one script
ei|epminstall|epm-install|selfinstall
)
# HELPCMD: install or update eepm
package
from all in one script
epm_cmd
=
epm_install
epm_cmd
=
epm_install
;;
;;
print
)
# HELPCMD: print various info, run epm print help for details
print
)
# HELPCMD: print various info, run epm print help for details
...
...
bin/epm-packages
View file @
e1113090
...
@@ -23,10 +23,10 @@ __epm_packages_sort()
...
@@ -23,10 +23,10 @@ __epm_packages_sort()
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm|yum-rpm|urpm-rpm|zypper-rpm|dnf-rpm
)
apt-rpm|yum-rpm|urpm-rpm|zypper-rpm|dnf-rpm
)
# FIXME: space with quotes problems, use point instead
# FIXME: space with quotes problems, use point instead
docmd rpm
-qa
--queryformat
"%{size}
.%{name}-%{version}-%{release}
\n
"
$pkg_filenames
|
sort
-n
docmd rpm
-qa
--queryformat
"%{size}
@%{name}-%{version}-%{release}
\n
"
$pkg_filenames
|
sed
-e
"s|@| |g"
|
sort
-n
-k1
;;
;;
apt-dpkg
)
apt-dpkg
)
docmd dpkg-query
-W
--showformat
=
"
\$
{
Size}.
\$
{Package}-
\$
{Version}
\n
"
$pkg_filenames
|
sort
-n
docmd dpkg-query
-W
--showformat
=
"
\$
{
Installed-Size}@
\$
{Package}-
\$
{Version}
\n
"
$pkg_filenames
|
sed
-e
"s|@| |g"
|
sort
-n
-k1
;;
;;
*
)
*
)
fatal
"Sorted package list function is not implemented for
$PMTYPE
"
fatal
"Sorted package list function is not implemented for
$PMTYPE
"
...
...
bin/epm-policy
View file @
e1113090
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2015 Etersoft
# Copyright (C) 2015
, 2017
Etersoft
# Copyright (C) 2015 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2015
, 2017
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
load_helper epm-query
epm_policy
()
epm_policy
()
{
{
...
...
bin/epm-sh-altlinux
View file @
e1113090
...
@@ -61,7 +61,10 @@ compress_file_inplace()
...
@@ -61,7 +61,10 @@ compress_file_inplace()
{
{
local
OFILE
=
"
$1
"
local
OFILE
=
"
$1
"
if
epm assure lz4 </dev/null
;
then
if
epm assure lz4 </dev/null
;
then
docmd lz4
--rm
"
$OFILE
"
"
$OFILE
.lz4"
||
return
#docmd lz4 --rm "$OFILE" "$OFILE.lz4" || return
# due old lz4
docmd lz4
"
$OFILE
"
"
$OFILE
.lz4"
||
return
rm
-fv
"
$OFILE
"
else
else
epm assure xz </dev/null
||
return
epm assure xz </dev/null
||
return
docmd xz
"
$OFILE
"
||
return
docmd xz
"
$OFILE
"
||
return
...
@@ -104,7 +107,7 @@ get_local_alt_contents_index()
...
@@ -104,7 +107,7 @@ get_local_alt_contents_index()
epm_repolist |
grep
-E
"rpm.*(ftp://|http://|https://|file:/)"
|
sed
-e
"s@^rpm.*
\(
ftp://
\|
http://
\|
https://
\|
file:
\)
@
\1
@g"
|
while
read
URL ARCH other
;
do
epm_repolist |
grep
-E
"rpm.*(ftp://|http://|https://|file:/)"
|
sed
-e
"s@^rpm.*
\(
ftp://
\|
http://
\|
https://
\|
file:
\)
@
\1
@g"
|
while
read
URL ARCH other
;
do
LOCALPATH
=
$(
get_local_alt_mirror_path
"
$URL
/
$ARCH
"
)
LOCALPATH
=
$(
get_local_alt_mirror_path
"
$URL
/
$ARCH
"
)
download_alt_contents_index
$URL
/
$ARCH
/base/contents_index
$LOCALPATH
||
continue
download_alt_contents_index
$URL
/
$ARCH
/base/contents_index
$LOCALPATH
>
&2
||
continue
echo
"
$LOCALPATH
/contents_index*"
echo
"
$LOCALPATH
/contents_index*"
done
done
...
...
eepm.spec
View file @
e1113090
# This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils.
# This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils.
#
#
Name: eepm
Name: eepm
Version: 2.0.
5
Version: 2.0.
6
Release: alt0.M80P.1
Release: alt0.M80P.1
Summary: Etersoft EPM package manager
Summary: Etersoft EPM package manager
...
@@ -68,9 +68,13 @@ chmod a+x %buildroot%_datadir/%name/tools_*
...
@@ -68,9 +68,13 @@ chmod a+x %buildroot%_datadir/%name/tools_*
%_sysconfdir/bash_completion.d/cerv
%_sysconfdir/bash_completion.d/cerv
%changelog
%changelog
*
Fri Mar 10 2017 Vitaly Lipatov <lav@altlinux.ru> 2.0.5
-alt0.M80P.1
*
Mon Mar 13 2017 Vitaly Lipatov <lav@altlinux.ru> 2.0.6
-alt0.M80P.1
- backport to ALTLinux p8 (by rpmbph script)
- backport to ALTLinux p8 (by rpmbph script)
* Mon Mar 13 2017 Vitaly Lipatov <lav@altlinux.ru> 2.0.6-alt1
- epm-packages: improve sort output
- hack to support old lz4
* Fri Mar 10 2017 Vitaly Lipatov <lav@altlinux.ru> 2.0.5-alt1
* Fri Mar 10 2017 Vitaly Lipatov <lav@altlinux.ru> 2.0.5-alt1
- epm sf: make compressed cache for local file too
- epm sf: make compressed cache for local file too
- rewrite epm sf, colorify it
- rewrite epm sf, colorify it
...
...
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