diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-11-04 17:53:57 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-11-04 18:03:18 +0100 |
commit | 789245077d1ded7b2aaf4631bbca2a9267690739 (patch) | |
tree | eb4038c86215fd6abb4abef7332c72403c05abd1 /web/html/pkgsubmit.php | |
parent | 73656e17bd93132dc6864c4730a549f538fbf6bd (diff) | |
download | aurweb-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/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 885c44f..5dd58af 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); |