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
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
c269e9c2
Commit
c269e9c2
authored
Oct 01, 2020
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db: check cache only if some repositories are enabled
parent
c538509a
Pipeline
#50846
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/database.c
src/database.c
+1
-1
No files found.
src/database.c
View file @
c269e9c2
...
...
@@ -1706,7 +1706,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
apk_hash_foreach
(
&
db
->
available
.
names
,
apk_db_name_rdepends
,
db
);
}
if
(
apk_db_cache_active
(
db
))
if
(
apk_db_cache_active
(
db
)
&&
(
dbopts
->
open_flags
&
(
APK_OPENF_NO_REPOS
|
APK_OPENF_NO_INSTALLED
))
==
0
)
apk_db_cache_foreach_item
(
db
,
mark_in_cache
);
db
->
open_complete
=
1
;
...
...
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