Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
apk-tools
Commits
82713dc3
Commit
82713dc3
authored
Oct 09, 2014
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db: unconditionally refresh index with --force
parent
38e3f546
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/database.c
src/database.c
+3
-1
No files found.
src/database.c
View file @
82713dc3
...
...
@@ -624,7 +624,9 @@ int apk_cache_download(struct apk_database *db, struct apk_repository *repo,
r
=
apk_repo_format_real_url
(
db
,
repo
,
pkg
,
url
,
sizeof
(
url
));
if
(
r
<
0
)
return
r
;
if
(
fstatat
(
db
->
cache_fd
,
cacheitem
,
&
st
,
0
)
!=
0
)
st
.
st_mtime
=
0
;
if
((
apk_flags
&
APK_FORCE
)
||
fstatat
(
db
->
cache_fd
,
cacheitem
,
&
st
,
0
)
!=
0
)
st
.
st_mtime
=
0
;
apk_message
(
"fetch %s"
,
url
);
...
...
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