concrete/src/Package/PackageService.php
public function getLocalUpgradeablePackages()
    {
        $packages = $this->getAvailablePackages(false);
        $upgradeables = [];
        foreach ($packages as $p) {
            $entity = $this->getByHandle($p->getPackageHandle());
            if ($entity) {
                if (version_compare($p->getPackageVersion(), $entity->getPackageVersion(), '>')) {
                    $p->pkgCurrentVersion = $entity->getPackageVersion();
                    $upgradeables[] = $p;
                }
            }
        }

        return $upgradeables;
    }
public function getLocalUpgradeablePackages()
    {
        $packages = $this->getAvailablePackages(false);
        $upgradeables = [];
        foreach ($packages as $p) {
            $entity = $this->getByHandle($p->getPackageHandle());
            if ($entity) {
                if (version_compare($p->getPackageVersion(), $entity->getPackageVersion(), '>')) {
                    $p->pkgCurrentVersion = $entity->getPackageVersion();
                    $upgradeables[] = $p;
                }
            }
        }

        return $upgradeables;
    }
public function getLocalUpgradeablePackages ( ) { $ packages = $ this -> getAvailablePackages ( false ) ; $ upgradeables = [ ] ; foreach ( $ packages as $ p ) { $ entity = $ this -> getByHandle ( $ p -> getPackageHandle ( ) ) ; if ( $ entity ) { if ( version_compare ( $ p -> getPackageVersion ( ) , $ entity -> getPackageVersion ( ) , '>' ) ) { $ p -> pkgCurrentVersion = $ entity -> getPackageVersion ( ) ; $ upgradeables [ ] = $ p ; } } } return $ upgradeables ; }
Get the controllers of packages that have newer versions in the local packages directory than those which are in the Packages table.
This means they're ready to be upgraded.

@return \Concrete\Core\Package\Package[]
Get the controllers of packages that have newer versions in the local packages directory than those which are in the Packages table . This means they re ready to be upgraded .