Actually push the right patch

This commit is contained in:
Baptiste Daroussin 2013-06-18 20:01:32 +00:00
parent 4b812bde72
commit 21efbdc097
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321219

View file

@ -1,16 +1,16 @@
diff --git libpkg/fetch.c libpkg/fetch.c
index c2e5919..8e902ae 100644
index c2e5919..c094e33 100644
--- libpkg/fetch.c
+++ libpkg/fetch.c
@@ -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)
+ if (t != 0 && st.mtime != 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;
diff --git newvers.sh newvers.sh
index 207aab0..651231f 100755
--- newvers.sh