Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
065427f4
Commit
065427f4
authored
Aug 03, 2013
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit: don't ask questions if simulating
parent
ed060911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/commit.c
src/commit.c
+9
-9
No files found.
src/commit.c
View file @
065427f4
...
...
@@ -249,18 +249,19 @@ int apk_solver_commit_changeset(struct apk_database *db,
size_unit
=
'M'
;
}
if
(
apk_verbosity
>
1
||
(
apk_flags
&
APK_INTERACTIVE
))
{
if
((
apk_verbosity
>
1
||
(
apk_flags
&
APK_INTERACTIVE
))
&&
!
(
apk_flags
&
APK_SIMULATE
))
{
r
=
dump_packages
(
changeset
,
cmp_remove
,
"The following packages will be REMOVED"
);
r
+=
dump_packages
(
changeset
,
cmp_downgrade
,
"The following packages will be DOWNGRADED"
);
if
(
r
||
(
apk_flags
&
APK_INTERACTIVE
)
||
apk_verbosity
>
2
)
{
dump_packages
(
changeset
,
cmp_new
,
"The following NEW packages will be installed"
);
dump_packages
(
changeset
,
cmp_upgrade
,
"The following packages will be upgraded"
);
dump_packages
(
changeset
,
cmp_reinstall
,
"The following packages will be reinstalled"
);
r
+=
dump_packages
(
changeset
,
cmp_new
,
"The following NEW packages will be installed"
);
r
+=
dump_packages
(
changeset
,
cmp_upgrade
,
"The following packages will be upgraded"
);
r
+=
dump_packages
(
changeset
,
cmp_reinstall
,
"The following packages will be reinstalled"
);
printf
(
"After this operation, %zd %ciB of %s.
\n
"
,
(
size_diff
<
0
)
?
-
size_diff
:
size_diff
,
size_unit
,
...
...
@@ -268,8 +269,7 @@ int apk_solver_commit_changeset(struct apk_database *db,
"disk space will be freed"
:
"additional disk space will be used"
);
}
if
(
changeset
->
num_total_changes
>
0
&&
(
apk_flags
&
APK_INTERACTIVE
))
{
if
(
r
>
0
&&
(
apk_flags
&
APK_INTERACTIVE
))
{
printf
(
"Do you want to continue [Y/n]? "
);
fflush
(
stdout
);
r
=
fgetc
(
stdin
);
...
...
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