{"action":"opened","issue":{"url":"https://api.github.com/repos/indiebox/macrobuild-ubos/issues/8","labels_url":"https://api.github.com/repos/indiebox/macrobuild-ubos/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/indiebox/macrobuild-ubos/issues/8/comments","events_url":"https://api.github.com/repos/indiebox/macrobuild-ubos/issues/8/events","html_url":"https://github.com/indiebox/macrobuild-ubos/issues/8","id":59580148,"number":8,"title":"Timestamp from upstream database packages","user":{"login":"indiebox","id":8172617,"avatar_url":"https://avatars.githubusercontent.com/u/8172617?v=3","gravatar_id":"","url":"https://api.github.com/users/indiebox","html_url":"https://github.com/indiebox","followers_url":"https://api.github.com/users/indiebox/followers","following_url":"https://api.github.com/users/indiebox/following{/other_user}","gists_url":"https://api.github.com/users/indiebox/gists{/gist_id}","starred_url":"https://api.github.com/users/indiebox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiebox/subscriptions","organizations_url":"https://api.github.com/users/indiebox/orgs","repos_url":"https://api.github.com/users/indiebox/repos","events_url":"https://api.github.com/users/indiebox/events{/privacy}","received_events_url":"https://api.github.com/users/indiebox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-03T01:14:17Z","updated_at":"2015-03-03T01:14:17Z","closed_at":null,"body":"I think this is what is happening:\r\n\r\n1. Upstream updates a database, e.g. extra.db\r\n2. After some time, the mirror we use gets the the updated database, using the timestamp on the file of the original update\r\n3. When we download the database file, we timestamp it with the time of download\r\n4. When we look for updates, we (well, curl -z) compare the local timestamp (the time of download) against the time of update, and skip re-downloading if there hasn't been a more recent upstream change.\r\n5. If we happen to download during the time window between step 1 and step 2 above, we miss an update\r\n\r\nSolution: find a way to set the timestamp of the downloaded file to the same as the upstream database file, not the time of download."}}