only write local metadata if an update was found, avoids assuming a SNAPSHOT file that might not exist and getting stuck with it