// If a version changed from what was in the cache, return true, otherwise false
If a version changed from what was in the cache, return true, otherwise false
// If a version changed from what was in the cache return true otherwise false
func versionChanged(rpmURL, cacheDir string, cRPM *rpm.PackageFile) bool {
	newRPM, err := rpm.OpenPackageFile(rpmURL)
	if err != nil {
		return true
	}
	return rpm.VersionCompare(newRPM, cRPM) == 1
}
func versionChanged ( rpmURL , cacheDir string , cRPM * rpm . PackageFile ) bool { newRPM , err := rpm . OpenPackageFile ( rpmURL ) if err != nil { return true } return rpm . VersionCompare ( newRPM , cRPM ) == 1 }
If a version changed from what was in the cache, return true, otherwise false
If a version changed from what was in the cache return true otherwise false
// VersionCompare returns 1 if newRPM is more recent, -1 if cRPM is more recent // and 0, if they're the same.