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
9565e919
Commit
9565e919
authored
Sep 12, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autoremove: use apt-get autoremove on ALT by default
parent
5fc10205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
epm
bin/epm
+1
-1
epm-autoremove
bin/epm-autoremove
+8
-1
No files found.
bin/epm
View file @
9565e919
...
@@ -284,7 +284,7 @@ check_command()
...
@@ -284,7 +284,7 @@ check_command()
restore
)
# HELPCMD: install (restore) packages need for the project (f.i. by requirements.txt)
restore
)
# HELPCMD: install (restore) packages need for the project (f.i. by requirements.txt)
epm_cmd
=
restore
epm_cmd
=
restore
;;
;;
autoremove|package-cleanup
)
# HELPCMD: auto remove unneeded package(s) Supports args for ALT: [
libs|python|perl|libs-devel
]
autoremove|package-cleanup
)
# HELPCMD: auto remove unneeded package(s) Supports args for ALT: [
--direct [libs|python|perl|libs-devel]
]
epm_cmd
=
autoremove
epm_cmd
=
autoremove
;;
;;
autoorphans|--orphans
)
# HELPCMD: remove all packages not from the repository
autoorphans|--orphans
)
# HELPCMD: remove all packages not from the repository
...
...
bin/epm-autoremove
View file @
9565e919
...
@@ -169,7 +169,14 @@ epm_autoremove()
...
@@ -169,7 +169,14 @@ epm_autoremove()
case
$DISTRNAME
in
case
$DISTRNAME
in
ALTLinux
)
ALTLinux
)
__epm_autoremove_altrpm
if
[
-z
"
$direct
"
]
;
then
sudocmd apt-get autoremove
$dryrun
local
RET
=
$?
info
"Also you can run 'epm autoremove --direct' to use low level autoremove (epm internal implementation)"
[
"
$RET
"
=
0
]
||
return
else
__epm_autoremove_altrpm
fi
[
-n
"
$dryrun
"
]
&&
return
[
-n
"
$dryrun
"
]
&&
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