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
c6046641
Commit
c6046641
authored
Aug 24, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-autoremove: fix bug with next cycle in direct mode
parent
72a0ba28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
epm-autoremove
bin/epm-autoremove
+10
-6
No files found.
bin/epm-autoremove
View file @
c6046641
...
...
@@ -88,21 +88,25 @@ __epm_autoremove_altrpm_lib()
local
opt
=
"
$1
"
local
libgrep
=
''
info
if
[
"
$opt
"
=
"libs"
]
;
then
case
"
$opt
"
in
libs
)
info
"Removing all non -devel/-debuginfo libs packages not need by anything..."
local
develrule
=
'-(devel|devel-static)$'
libgrep
=
'^(lib|bzlib|zlib)'
elif
[
"
$opt
"
=
"i586-libs"
]
;
then
;;
i586-libs
)
info
"Removing all non -devel/-debuginfo i586-libs packages not need by anything..."
local
develrule
=
'-(devel|devel-static)$'
libgrep
=
'^(i586-lib|i586-bzlib|i586-zlib)'
elif
[
"
$opt
"
=
"devel"
]
;
then
;;
devel
)
info
"Removing all non -debuginfo libs packages (-devel too) not need by anything..."
local
develrule
=
'-(NONONO)$'
libgrep
=
'^(lib|bzlib|zlib)'
else
;;
*
)
fatal
"Internal error: unsupported opt
$opt
"
fi
esac
# https://www.altlinux.org/APT_в_ALT_Linux/Советы_по_использованию#apt-cache_list-nodeps
showcmd
"apt-cache list-nodeps | grep -E --
\"
$libgrep
\"
"
...
...
@@ -133,7 +137,7 @@ __epm_autoremove_altrpm_lib()
if
[
-n
"
$flag
"
]
;
then
info
""
info
"call again for next cycle until all libs will be removed"
__epm_autoremove_altrpm_lib
$
nodevel
__epm_autoremove_altrpm_lib
$
opt
fi
return
0
...
...
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