refactor and add pkgAcqIndex::ValidateFile()