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
Nurlan
eepm
Commits
80c62b3f
Commit
80c62b3f
authored
May 26, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reformat pipe signs
parent
4b9f396c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
11 deletions
+21
-11
epm-autoorphans
bin/epm-autoorphans
+3
-1
epm-autoremove
bin/epm-autoremove
+5
-5
epm-print
bin/epm-print
+3
-1
epm-release_upgrade
bin/epm-release_upgrade
+10
-4
No files found.
bin/epm-autoorphans
View file @
80c62b3f
...
...
@@ -34,7 +34,9 @@ case $PMTYPE in
assure_exists /etc/buildreqs/files/ignore.d/apt-scripts apt-scripts
echo
"We will try remove all installed packages which are missed in repositories"
warning
"Use with caution!"
local
PKGLIST
=
$(
__epm_orphan_altrpm |
sed
-e
"s/
\.
32bit//g"
|
grep
-v
--
"^kernel"
)
local
PKGLIST
=
$(
__epm_orphan_altrpm
\
|
sed
-e
"s/
\.
32bit//g"
\
|
grep
-v
--
"^kernel"
)
docmd epm remove
$PKGLIST
;;
apt-dpkg|aptitude-dpkg
)
...
...
bin/epm-autoremove
View file @
80c62b3f
...
...
@@ -32,11 +32,11 @@ __epm_autoremove_altrpm()
# https://www.altlinux.org/APT_в_ALT_Linux/Советы_по_использованию#apt-cache_list-nodeps
showcmd
"apt-cache list-nodeps | grep --
\"
$libexclude
\"
"
pkgs
=
$(
apt-cache list-nodeps |
grep
--
"
$libexclude
"
|
\
grep
-E
-v
--
"-(devel|debuginfo)$"
|
\
grep
-E
-v
--
"-(util|tool|plugin|daemon)"
|
\
sed
-e
"s/
\.
32bit
$/
/g"
|
\
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss)"
)
pkgs
=
$(
apt-cache list-nodeps |
grep
--
"
$libexclude
"
\
|
grep
-E
-v
--
"-(devel|debuginfo)$"
\
|
grep
-E
-v
--
"-(util|tool|plugin|daemon)"
\
|
sed
-e
"s/
\.
32bit
$/
/g"
\
|
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss)"
)
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
info
"Removing unused python/perl modules..."
...
...
bin/epm-print
View file @
80c62b3f
...
...
@@ -39,7 +39,9 @@ print_binpkgfilelist()
local
PKGNAME
=
$(
basename
$2
)
find
"
$PKGDIR
"
!
-name
'*\.src\.rpm'
-name
'*\.rpm'
-execdir
\
rpmquery
-p
--qf
=
'%{sourcerpm}\t%{name}-%{version}-%{release}.%{arch}.rpm\n'
"{}"
\;
\
|
grep
"^
$PKGNAME
[[:space:]].*"
|
cut
-f2
| xargs
-n1
-I
"{}"
echo
-n
"
$PKGDIR
/{} "
|
grep
"^
$PKGNAME
[[:space:]].*"
\
|
cut
-f2
\
| xargs
-n1
-I
"{}"
echo
-n
"
$PKGDIR
/{} "
}
# TODO: need try detect more strict
...
...
bin/epm-release_upgrade
View file @
80c62b3f
...
...
@@ -35,15 +35,21 @@ __wcount()
__detect_alt_release_by_repo
()
{
local
BRD
=
$(
cat
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list |
\
grep
-v
"^#"
|
grep
"p[5-9]/branch/"
|
sed
-e
"s|.*
\(
p[5-9]
\)
/branch.*|
\1
|g"
|
sort
-u
)
local
BRD
=
$(
cat
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list
\
|
grep
-v
"^#"
\
|
grep
"p[5-9]/branch/"
\
|
sed
-e
"s|.*
\(
p[5-9]
\)
/branch.*|
\1
|g"
\
|
sort
-u
)
if
[
$(
__wcount
$BRD
)
=
"1"
]
;
then
echo
"
$BRD
"
return
fi
local
BRD
=
$(
cat
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list |
\
grep
-v
"^#"
|
grep
"Sisyphus/"
|
sed
-e
"s|.*
\(
Sisyphus
\)
.*|
\1
|g"
|
sort
-u
)
local
BRD
=
$(
cat
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list
\
|
grep
-v
"^#"
\
|
grep
"Sisyphus/"
\
|
sed
-e
"s|.*
\(
Sisyphus
\)
.*|
\1
|g"
\
|
sort
-u
)
if
[
$(
__wcount
$BRD
)
=
"1"
]
;
then
echo
"
$BRD
"
return
...
...
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