mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Only parse PKGBUILD when required
Instead of always parsing the PKGBUILD, only invoke the parser when there is no meta data (.AURINFO) available. This speeds up the general case (packages including meta data). Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
d7044eb1ec
commit
16090496a4
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,6 @@ if ($uid):
|
|||
}
|
||||
}
|
||||
|
||||
include('pkgbuild-parser.inc.php');
|
||||
|
||||
/* Parse .AURINFO and extract meta data. */
|
||||
$pkgbase_info = array();
|
||||
$pkginfo = array();
|
||||
|
@ -177,6 +175,8 @@ if ($uid):
|
|||
}
|
||||
} else {
|
||||
/* Use data from the PKGBUILD parser (deprecated!) */
|
||||
include('pkgbuild-parser.inc.php');
|
||||
|
||||
$pkgbase_info = $new_pkgbuild;
|
||||
if (!isset($pkgbase_info['pkgbase'])) {
|
||||
$pkgbase_info['pkgbase'] = $pkgbase_info['pkgname'];
|
||||
|
|
Loading…
Add table
Reference in a new issue