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
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
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
c35086dc
Commit
c35086dc
authored
Apr 10, 2014
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solver: purge install_if packages deleted from repositories on upgrade -a
parent
9fa64ca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/solver.c
src/solver.c
+9
-2
No files found.
src/solver.c
View file @
c35086dc
...
...
@@ -187,8 +187,6 @@ static void discover_name(struct apk_solver_state *ss, struct apk_name *name)
continue
;
pkg
->
ss
.
seen
=
1
;
pkg
->
ss
.
iif_failed
=
(
pkg
->
install_if
->
num
==
0
);
name
->
ss
.
no_iif
&=
pkg
->
ss
.
iif_failed
;
pkg
->
ss
.
pinning_allowed
=
APK_DEFAULT_PINNING_MASK
;
pkg
->
ss
.
pinning_preferred
=
APK_DEFAULT_PINNING_MASK
;
...
...
@@ -201,6 +199,15 @@ static void discover_name(struct apk_solver_state *ss, struct apk_name *name)
(
pkg
->
repos
&
db
->
available_repos
)
||
pkg
->
ipkg
;
/* Prune install_if packages that are no longer available,
* currently works only if SOLVERF_AVAILABLE is set in the
* global solver flags. */
pkg
->
ss
.
iif_failed
=
(
pkg
->
install_if
->
num
==
0
)
||
((
ss
->
solver_flags_inherit
&
APK_SOLVERF_AVAILABLE
)
&&
!
pkg
->
ss
.
pkg_available
);
name
->
ss
.
no_iif
&=
pkg
->
ss
.
iif_failed
;
repos
=
get_pkg_repos
(
db
,
pkg
);
pkg
->
ss
.
tag_preferred
=
(
pkg
->
filename
!=
NULL
)
||
...
...
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