mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkgsubmit.php: Style fixes
Move some elseif statements to the same line as the closing brace. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
97df70daec
commit
ac09e669c7
1 changed files with 4 additions and 8 deletions
|
@ -90,20 +90,16 @@ if ($uid):
|
||||||
if (strchr($tar_file['filename'], '/') === false) {
|
if (strchr($tar_file['filename'], '/') === false) {
|
||||||
$error = __("Error - source tarball may not contain files outside a directory.");
|
$error = __("Error - source tarball may not contain files outside a directory.");
|
||||||
break;
|
break;
|
||||||
}
|
} elseif (substr($tar_file['filename'], -9) == '/PKGBUILD') {
|
||||||
elseif (substr($tar_file['filename'], -9) == '/PKGBUILD') {
|
|
||||||
$pkgbuild_raw = $tar->extractInString($tar_file['filename']);
|
$pkgbuild_raw = $tar->extractInString($tar_file['filename']);
|
||||||
}
|
} elseif (substr($tar_file['filename'], -9) == '/.AURINFO') {
|
||||||
elseif (substr($tar_file['filename'], -9) == '/.AURINFO') {
|
|
||||||
$srcinfo_raw = $tar->extractInString($tar_file['filename']);
|
$srcinfo_raw = $tar->extractInString($tar_file['filename']);
|
||||||
}
|
}
|
||||||
}
|
} elseif ($tar_file['typeflag'] == 5) {
|
||||||
elseif ($tar_file['typeflag'] == 5) {
|
|
||||||
if (substr_count($tar_file['filename'], "/") > 1) {
|
if (substr_count($tar_file['filename'], "/") > 1) {
|
||||||
$error = __("Error - source tarball may not contain nested subdirectories.");
|
$error = __("Error - source tarball may not contain nested subdirectories.");
|
||||||
break;
|
break;
|
||||||
}
|
} elseif (++$dircount > 1) {
|
||||||
elseif (++$dircount > 1) {
|
|
||||||
$error = __("Error - source tarball may not contain more than one directory.");
|
$error = __("Error - source tarball may not contain more than one directory.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue