From: Tomas V.V.Cox Date: Fri, 29 Aug 2003 14:02:20 +0000 (+0000) Subject: snapshot < devel (betterStates()) X-Git-Tag: RELEASE_0_7~374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26c90cc9655d28c5367a90902bd8c474406f9678;p=php snapshot < devel (betterStates()) --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 2b416e020d..46d78b3672 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -1370,7 +1370,7 @@ class PEAR_Common extends PEAR */ function betterStates($state, $include = false) { - static $states = array('devel', 'snapshot', 'alpha', 'beta', 'stable'); + static $states = array('snapshot', 'devel', 'alpha', 'beta', 'stable'); $i = array_search($state, $states); if ($i === false) { return false; @@ -1751,7 +1751,7 @@ class PEAR_Common extends PEAR $newret[] = $p; } } - + $func = $uninstall ? '_sortPkgDepsRev' : '_sortPkgDeps'; usort($newret, array('PEAR_Common', $func)); $packages = $newret;