From 92643bb8278f3f17d55e1e6c37210ddacb957dae Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Thu, 8 Jan 2009 11:47:49 -0500 Subject: Don't require source or md5sum arrays in PKGBUILDs. Also fix a translation string. Signed-off-by: Loui Chang --- web/html/pkgsubmit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index df25360..b4b94d2 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -155,10 +155,11 @@ if ($_COOKIE["AURSID"]): $error = __("Missing build function in PKGBUILD."); } - $req_vars = array("md5sums", "source", "url", "pkgdesc", "license", "pkgrel", "pkgver", "arch", "pkgname"); + $req_vars = array("url", "pkgdesc", "license", "pkgrel", "pkgver", "arch", "pkgname"); foreach ($req_vars as $var) { if (!array_key_exists($var, $pkgbuild)) { - $error = __("Missing " . $var . " variable in PKGBUILD."); + $error = __('Missing %s variable in PKGBUILD.', $var); + break; } } } -- cgit v1.2.3-70-g09d2