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
8b6f18c1
Commit
8b6f18c1
authored
Oct 10, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-remove: add --skip-missed
parent
fecec172
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
TODO
TODO
+0
-4
epm
bin/epm
+4
-0
epm-remove
bin/epm-remove
+5
-0
No files found.
TODO
View file @
8b6f18c1
При удалении, если ошибка состоит в отсутствии пакета, не нужно переключаться на apt-get
При удалении, если ошибка состоит в отсутствии пакета, не нужно переключаться на apt-get
Если удаляется несколько пакетов, и один из них отсутствует, не удалится ничего.
Параметр типа --skip-installed, но наоборот? (--skip-missed?)
epme вызывает apt-get remove для пакетов, которых нет при удалении через rpm
epme вызывает apt-get remove для пакетов, которых нет при удалении через rpm
То же для простого epme пакет (не удалять отсутствующие пакеты)
apt-mark (для работы autoremove and autoorphans) - помечать то, что удалять не следует
apt-mark (для работы autoremove and autoorphans) - помечать то, что удалять не следует
apt-mark hold unhold showhold auto manual showauto showmanual
apt-mark hold unhold showhold auto manual showauto showmanual
...
...
bin/epm
View file @
8b6f18c1
...
@@ -98,6 +98,7 @@ direct=
...
@@ -98,6 +98,7 @@ direct=
sort
=
sort
=
non_interactive
=
non_interactive
=
skip_installed
=
skip_installed
=
skip_missed
=
show_command_only
=
show_command_only
=
epm_cmd
=
epm_cmd
=
pkg_files
=
pkg_files
=
...
@@ -358,6 +359,9 @@ check_option()
...
@@ -358,6 +359,9 @@ check_option()
--skip-installed
)
# HELPOPT: skip already installed packages during install
--skip-installed
)
# HELPOPT: skip already installed packages during install
skip_installed
=
1
skip_installed
=
1
;;
;;
--skip-missed
)
# HELPOPT: skip not installed packages during remove
skip_missed
=
1
;;
--show-command-only
)
# HELPOPT: show command only, do not any action (supports install and remove ONLY)
--show-command-only
)
# HELPOPT: show command only, do not any action (supports install and remove ONLY)
show_command_only
=
1
show_command_only
=
1
;;
;;
...
...
bin/epm-remove
View file @
8b6f18c1
...
@@ -21,6 +21,7 @@ load_helper epm-sh-altlinux
...
@@ -21,6 +21,7 @@ load_helper epm-sh-altlinux
load_helper epm-query
load_helper epm-query
load_helper epm-print
load_helper epm-print
load_helper epm-sh-warmup
load_helper epm-sh-warmup
load_helper epm-sh-install
# Try remove with low level removing
# Try remove with low level removing
epm_remove_low
()
epm_remove_low
()
...
@@ -297,6 +298,10 @@ epm_remove()
...
@@ -297,6 +298,10 @@ epm_remove()
esac
esac
fi
fi
if
[
-n
"
$skip_missed
"
]
;
then
pkg_names
=
"
$(
get_only_installed_packages
$pkg_names
)
"
fi
epm_remove_low
$pkg_names
&&
return
epm_remove_low
$pkg_names
&&
return
local
STATUS
=
$?
local
STATUS
=
$?
# TODO: check if we need continue with hi level
# TODO: check if we need continue with hi level
...
...
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