From 789245077d1ded7b2aaf4631bbca2a9267690739 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 4 Nov 2012 17:53:57 +0100 Subject: pkgsubmit.php: Show a warning for split packages Display a special error message if the package is identified as split package. Currently, the AUR displays a very vague error message when a split package is submitted ("Invalid name: only lowercase letters are allowed"). This often caused confusion among package submitters, see FS#22834 and FS#32450. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 885c44fd..5dd58af0 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -269,6 +269,10 @@ if ($uid): } # Now we've parsed the pkgbuild, let's move it to where it belongs + if (!$error && $pkg_name[0] == '(') { + $error = __("Error - The AUR does not support split packages!"); + } + if (!$error) { $pkg_name = str_replace("'", "", $new_pkgbuild['pkgname']); $pkg_name = escapeshellarg($pkg_name); -- cgit v1.2.3-24-g4f1b