Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loic
pkg
Commits
872bd4ea
Commit
872bd4ea
authored
Jun 18, 2013
by
Baptiste Daroussin
Browse files
Actually commit the right fix from cperciva
parent
1deafd17
Changes
1
Hide whitespace changes
Inline
Side-by-side
libpkg/fetch.c
View file @
872bd4ea
...
...
@@ -145,7 +145,7 @@ pkg_fetch_file_to_fd(const char *url, int dest, time_t t)
retry
=
max_retry
;
u
=
fetchParseURL
(
url
);
if
(
t
!=
0
&&
st
.
mtime
!=
0
)
if
(
t
!=
0
)
u
->
ims_time
=
t
;
doc
=
u
->
doc
;
...
...
@@ -212,7 +212,7 @@ pkg_fetch_file_to_fd(const char *url, int dest, time_t t)
}
}
}
if
(
t
!=
0
)
{
if
(
t
!=
0
&&
st
.
mtime
!=
0
)
{
if
(
st
.
mtime
<=
t
)
{
retcode
=
EPKG_UPTODATE
;
goto
cleanup
;
...
...
Write
Preview
Supports
Markdown
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