cvs: pearweb /public_html release-upload.php

From: Date: Sat, 24 Feb 2007 19:20:43 +0000
Subject: cvs: pearweb /public_html release-upload.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-44860@lists.php.net to get a copy of this message
cellog Sat Feb 24 19:20:43 2007 UTC Modified files: /pearweb/public_html release-upload.php Log: catch bogus packages with no package.xml in root dir http://cvs.php.net/viewvc.cgi/pearweb/public_html/release-upload.php?r1=1.78&r2=1.79&diff_format=u Index: pearweb/public_html/release-upload.php diff -u pearweb/public_html/release-upload.php:1.78 pearweb/public_html/release-upload.php:1.79 --- pearweb/public_html/release-upload.php:1.78 Fri Feb 2 23:24:12 2007 +++ pearweb/public_html/release-upload.php Sat Feb 24 19:20:43 2007 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: release-upload.php,v 1.78 2007/02/02 23:24:12 cellog Exp $ + $Id: release-upload.php,v 1.79 2007/02/24 19:20:43 cellog Exp $ */ auth_require('pear.dev'); @@ -95,6 +95,10 @@ $compatible_pxml = false; $packagexml = $tar->extractInString('package.xml'); } + if ($packagexml === null) { + $errors[] = 'No package.xml found in this release'; + break; + } $pacid = package::info($info->getPackage(), 'id'); if (PEAR::isError($pacid)) { $errors[] = $pacid->getMessage();

« previous php.pear.cvs (#44860) next »