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>
This commit is contained in:
Lukas Fleischer 2012-11-04 17:53:57 +01:00
parent 73656e17bd
commit 789245077d

View file

@ -269,6 +269,10 @@ if ($uid):
} }
# Now we've parsed the pkgbuild, let's move it to where it belongs # 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) { if (!$error) {
$pkg_name = str_replace("'", "", $new_pkgbuild['pkgname']); $pkg_name = str_replace("'", "", $new_pkgbuild['pkgname']);
$pkg_name = escapeshellarg($pkg_name); $pkg_name = escapeshellarg($pkg_name);