Skip to content

Commit

Permalink
Fix missing options for dependency menu
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jan 31, 2012
1 parent 1756292 commit 3befec7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/pfm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!class_exists('PEAR_PackageFileManager2')) {
die("Missing PEAR_PackageFileManager. Please check your PEAR installation.\n");
}

PEAR::setErrorHandling(PEAR_ERROR_DIE);
PEAR::setErrorHandling(PEAR_ERROR_EXCEPTION);

define('WINDOWS', (substr(PHP_OS, 0, 3) == 'WIN'));
$default_package_path = './package.xml';
Expand Down Expand Up @@ -417,6 +417,17 @@ function editDependencies(PEAR_PackageFileManager2 $pfm)
$pfm->clearDeps();
$pfm->setPearinstallerDep('1.4.0');
break;

case 4:
$version = readAnswer('PHP version', true);
$pfm->setPhpDep($version);
break;

case 5:
$version = readAnswer('PEAR installer version', true);
$pfm->setPearinstallerDep($version);
break;

}

$value = dependencyMenu($pfm);
Expand Down

0 comments on commit 3befec7

Please sign in to comment.