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
517cc14c
Commit
517cc14c
authored
Aug 17, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
backported to p8 as 1.9.0-alt0.M80P.1 (with rpmbph script)
parents
a14f59c0
de9d2752
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
43 additions
and
35 deletions
+43
-35
epm-autoorphans
bin/epm-autoorphans
+1
-1
epm-autoremove
bin/epm-autoremove
+1
-1
epm-changelog
bin/epm-changelog
+5
-5
epm-info
bin/epm-info
+4
-0
epm-requires
bin/epm-requires
+8
-5
epm-upgrade
bin/epm-upgrade
+1
-1
epm-whatdepends
bin/epm-whatdepends
+5
-2
epm-whatprovides
bin/epm-whatprovides
+5
-2
serv
bin/serv
+3
-12
serv-list
bin/serv-list
+1
-1
serv-status
bin/serv-status
+2
-3
eepm.spec
eepm.spec
+7
-2
No files found.
bin/epm-autoorphans
View file @
517cc14c
...
...
@@ -60,7 +60,7 @@ case $PMTYPE in
docmd epm remove
$PKGLIST
;;
urpm-rpm
)
showcmd urpm
q
--auto
-orphans
showcmd urpm
e
--report
-orphans
sudocmd urpme
--auto-orphans
;;
#emerge)
...
...
bin/epm-autoremove
View file @
517cc14c
...
...
@@ -36,7 +36,7 @@ __epm_autoremove_altrpm()
|
grep
-E
-v
--
"-(devel|debuginfo)$"
\
|
grep
-E
-v
--
"-(util|tool|plugin|daemon)"
\
|
sed
-e
"s/
\.
32bit
$/
/g"
\
|
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss|eepm)"
)
|
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss|
libvirt-client|libvirt-daemon|
eepm)"
)
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
info
"Removing unused python/perl modules..."
...
...
bin/epm-changelog
View file @
517cc14c
#!/bin/sh
#
# Copyright (C) 2012 Etersoft
# Copyright (C) 2012 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012
, 2016
Etersoft
# Copyright (C) 2012
, 2016
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -85,9 +85,9 @@ __epm_changelog_unlocal_names()
#yum-rpm)
# sudocmd yum clean all
# ;;
#
urpm-rpm)
# sudocmd urpmi --clean
#
;;
urpm-rpm
)
docmd urpmq
--changelog
$@
| less
;;
#zypper-rpm)
# sudocmd zypper clean
# ;;
...
...
bin/epm-info
View file @
517cc14c
...
...
@@ -59,6 +59,10 @@ case $PMTYPE in
__epm_info_rpm_low
&&
return
docmd yum info
$pkg_names
;;
urpmi-rpm
)
__epm_info_rpm_low
&&
return
docmd urpmq
-i
$pkg_names
;;
dnf-rpm
)
__epm_info_rpm_low
&&
return
docmd dnf info
$pkg_names
...
...
bin/epm-requires
View file @
517cc14c
#!/bin/sh
#
# Copyright (C) 2012-2013 Etersoft
# Copyright (C) 2012-2013 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-2013
, 2016
Etersoft
# Copyright (C) 2012-2013
, 2016
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -63,9 +63,12 @@ case $PMTYPE in
fi
;;
urpm-rpm|zypper-rpm
)
# FIXME: use hi level commands
CMD
=
"rpm -q --requires"
#zypper-rpm)
# # FIXME: use hi level commands
# CMD="rpm -q --requires"
# ;;
urpm-rpm
)
CMD
=
"urpmq --requires"
;;
yum-rpm
)
if
is_installed
$pkg_names
;
then
...
...
bin/epm-upgrade
View file @
517cc14c
...
...
@@ -51,7 +51,7 @@ epm_upgrade()
;;
urpm-rpm
)
# or --auto-select --replace-files
CMD
=
"urpmi --
auto-update
"
CMD
=
"urpmi --
update --auto-select
"
;;
zypper-rpm
)
CMD
=
"zypper dist-upgrade"
...
...
bin/epm-whatdepends
View file @
517cc14c
#!/bin/sh
#
# Copyright (C) 2013 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013
, 2016
Etersoft
# Copyright (C) 2013
, 2016
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -40,6 +40,9 @@ case $PMTYPE in
yum-rpm
)
CMD
=
"repoquery --whatrequires"
;;
urpm-rpm
)
CMD
=
"urpmq --whatrequires"
;;
dnf-rpm
)
CMD
=
"repoquery --whatrequires"
;;
...
...
bin/epm-whatprovides
View file @
517cc14c
#!/bin/sh
#
# Copyright (C) 2013 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013
, 2016
Etersoft
# Copyright (C) 2013
, 2016
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -38,6 +38,9 @@ case $PMTYPE in
yum-rpm
)
CMD
=
"yum whatprovides"
;;
urpm-rpm
)
CMD
=
"urpmq --whatprovides"
;;
dnf-rpm
)
CMD
=
"yum provides"
;;
...
...
bin/serv
View file @
517cc14c
...
...
@@ -99,24 +99,15 @@ is_active_systemd && CMD="systemd"
SERVICETYPE
=
$CMD
ANYSERVICE
=
$(
which anyservice 2>/dev/null
)
ANYSERVDIR
=
"/etc/systemd-lite"
ANYSYSDDIR
=
"/lib/systemd/system"
}
# TODO: done it on anyservice part
is_anyservice
()
{
local
SERVICE
=
"
$1
"
# not, if we have no anyservice at all
[
-n
"
$ANYSERVICE
"
]
||
return
1
# not, if there is regular service with the name
[
-d
"
$INITDIR
/
$SERVICE
"
]
&&
return
1
# yes, the service is anyservice driven
[
-r
"
$ANYSERVDIR
/
$SERVICE
.service"
]
&&
return
0
# yes, the service can be anyservice driven
[
-r
"
$ANYSYSDDIR
/
$SERVICE
.service"
]
&&
return
0
return
1
[
-n
"
$ANYSERVICE
"
]
||
return
# check if anyservice is exists and checkd returns true
$ANYSERVICE
"
$1
"
checkd 2>/dev/null
}
...
...
bin/serv-list
View file @
517cc14c
...
...
@@ -40,7 +40,7 @@ serv_list()
done
# TODO: только запущенные
if
[
-n
"
$ANYSERVICE
"
]
;
then
sudocmd
anyservice
list
sudocmd
$ANYSERVICE
list
return
fi
;;
...
...
bin/serv-status
View file @
517cc14c
...
...
@@ -49,9 +49,8 @@ is_service_autostart()
case
$SERVICETYPE
in
service-chkconfig|service-upstart
)
if
is_anyservice
$1
;
then
# HACK: if is registered, assume it is autostarted
[
-r
"
$ANYSERVDIR
/
$SERVICE
.service"
]
if
is_anyservice
$SERVICE
;
then
$ANYSERVICE
$SERVICE
isautostarted
return
fi
...
...
eepm.spec
View file @
517cc14c
# This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils.
#
Name: eepm
Version: 1.
8.8
Version: 1.
9.0
Release: alt0.M80P.1
Summary: Etersoft EPM package manager
...
...
@@ -67,9 +67,14 @@ chmod a+x %buildroot%_datadir/%name/{serv-,epm-}*
%_sysconfdir/bash_completion.d/cerv
%changelog
*
Mon Aug 15 2016 Vitaly Lipatov <lav@altlinux.ru> 1.8.8
-alt0.M80P.1
*
Wed Aug 17 2016 Vitaly Lipatov <lav@altlinux.ru> 1.9.0
-alt0.M80P.1
- backport to ALTLinux p8 (by rpmbph script)
* Wed Aug 17 2016 Vitaly Lipatov <lav@altlinux.ru> 1.9.0-alt1
- improve urpmi support
- serv: check anyservice support against anyservice version 0.3
- autoremove: ignore libvirt
* Mon Aug 15 2016 Vitaly Lipatov <lav@altlinux.ru> 1.8.8-alt1
- epm-install: skip low-level when install by path
- anyservice support fixes
...
...
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