More error checking
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 31 Aug 2010 15:06:13 +0000 (09:06 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 31 Aug 2010 15:06:41 +0000 (09:06 -0600)
framework/bin/install_framework

index 5e47869..ce1bfe3 100755 (executable)
@@ -198,6 +198,10 @@ foreach ($pkgs as $key => $val) {
     }
     foreach ($pkg_ob->getInstallationFilelist() as $file) {
         $orig = realpath($val . '/' . $file['attribs']['name']);
+        if (empty($orig)) {
+            $cli->message('Install file does not seem to exist: ' . $val . '/' . $file['attribs']['name'], 'cli.error');
+            continue;
+        }
 
         switch ($file['attribs']['role']) {
         case 'horde':