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
462255c3
Commit
462255c3
authored
3 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --force-yes support
parent
4b8d9509
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
epm
bin/epm
+4
-0
epm-downgrade
bin/epm-downgrade
+1
-1
epm-upgrade
bin/epm-upgrade
+1
-1
No files found.
bin/epm
View file @
462255c3
...
...
@@ -96,6 +96,7 @@ short=
direct
=
sort
=
non_interactive
=
force_yes
=
skip_installed
=
skip_missed
=
show_command_only
=
...
...
@@ -442,6 +443,9 @@ check_option()
--auto
|
--assumeyes
|
--non-interactive
)
# HELPOPT: non interactive mode
non_interactive
=
"--auto"
;;
--force-yes
)
# HELPOPT: force yes in a danger cases (f.i., during release upgrade)
force_yes
=
"--force-yes"
;;
*
)
return
1
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-downgrade
View file @
462255c3
...
...
@@ -93,7 +93,7 @@ epm_downgrade()
fi
;;
apt-dpkg
)
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
$force_yes
"
__epm_add_deb_apt_downgrade_preferences
||
return
if
[
-n
"
$pkg_filenames
"
]
;
then
sudocmd apt-get
$APTOPTIONS
install
$pkg_filenames
...
...
This diff is collapsed.
Click to expand it.
bin/epm-upgrade
View file @
462255c3
...
...
@@ -60,7 +60,7 @@ epm_upgrade()
apt-rpm|apt-dpkg
)
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
$(
subst_option verbose
"-o Debug::pkgMarkInstall=1 -o Debug::pkgProblemResolver=1"
)
"
# Функцию добавления параметра при условии
CMD
=
"apt-get
$APTOPTIONS
dist-upgrade
$noremov
e
"
CMD
=
"apt-get
$APTOPTIONS
$noremove
$force_yes
dist-upgrad
e"
;;
aptitude-dpkg
)
CMD
=
"aptitude dist-upgrade"
...
...
This diff is collapsed.
Click to expand it.
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