summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-11-04 17:53:57 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-11-04 18:03:18 +0100
commit789245077d1ded7b2aaf4631bbca2a9267690739 (patch)
treeeb4038c86215fd6abb4abef7332c72403c05abd1 /web/html
parent73656e17bd93132dc6864c4730a549f538fbf6bd (diff)
downloadaur-789245077d1ded7b2aaf4631bbca2a9267690739.tar.gz
aur-789245077d1ded7b2aaf4631bbca2a9267690739.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsubmit.php4
1 files changed, 4 insertions, 0 deletions
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);