mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
73656e17bd
commit
789245077d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue