From: Thierry Parmentelat Date: Fri, 4 Jul 2008 00:06:06 +0000 (+0000) Subject: dont define the repo if unexistent on the myplc (like when you just installed myplc... X-Git-Tag: nodeconfig-4.2-6~2 X-Git-Url: http://git.onelab.eu/?p=nodeconfig.git;a=commitdiff_plain;h=2018b00e34ddc10b68cdb70d5bfcac2e0e75421c dont define the repo if unexistent on the myplc (like when you just installed myplc); this would break yum --- diff --git a/PlanetLabConf/myplc.repo.php b/PlanetLabConf/myplc.repo.php index b0d2960..29c57ed 100644 --- a/PlanetLabConf/myplc.repo.php +++ b/PlanetLabConf/myplc.repo.php @@ -84,6 +84,8 @@ if ( ! $repo) { if ( ! $repo) { echo "# WARNING: could not find a decent planetlab repo for this node\n"; $repo = array ($pldistro, "planetlab", "default probably wrong"); + # don't define the repo in this case + exit; } list( $id, $dir, $name) = $repo;