check "last-modified" header value when downloading packages.xml and compare it to the local file. Use the most recent version.