public function __construct($prevUri, $curUri, $fpd)
 {
     parent::__construct($prevUri, $curUri);
     $this->fpd = $fpd;
 }
Ejemplo n.º 2
0
        $plugins[$match[1]] = true;
    }
    if (preg_match('%^/cli/%', $p)) {
        $cli = true;
    }
    if (preg_match('%^/src/www/soap/%', $p)) {
        $soap = true;
    }
    $match = array();
    if (preg_match('%^(/src/www/themes/[^/]+)/%', $p, $match)) {
        if ($match[1] != '/src/www/themes/common') {
            $themes[$match[1]] = true;
        }
    }
}
$cmp = new ReleaseVersionComparator($tagUrl, $rootdir);
/*if (isset($p)) {
    echo "Core: ".PHP_EOL;
    $cmp->iterateOverPaths(array('/'), $verbose);
}
*/
if (count($plugins) > 0) {
    echo "Plugins: " . PHP_EOL;
    $pluginCmp = new PluginReleaseVersionComparator($tagUrl, $rootdir, new FakePluginDescriptor($rootdir));
    $pluginCmp->iterateOverPaths(array_keys($plugins), $rpms['plugin'], $verbose);
}
if (count($themes) > 0) {
    echo "Themes: " . PHP_EOL;
    $cmp->iterateOverPaths(array_keys($themes), $rpms['theme'], $verbose);
}
if ($soap) {