{
PersistentPackage installedPackage = this.pkgDatabaseManager.getInstalledPackage(packageName);
// if the installed package version and the version of the package being upgraded are the same
// then skip the upgrade
PackageVersionComparator comparator = new PackageVersionComparator();
int versionComparison = comparator.compare(installedPackage.getPackageVersion(), pkgContext.getPackageVersion());
if (versionComparison == 0)
{
if (!upgradeOptions.isForceUpgrade())
{
logger.info("Skipping package upgrade, since package with name " + packageName + " and version "