Commit 92643bb8 authored by Loui Chang's avatar Loui Chang
Browse files

Don't require source or md5sum arrays in PKGBUILDs.



Also fix a translation string.

Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 6e1de705
......@@ -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;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment