mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Reintroduce the URLPath field
In commit 74edb6f
(Use Git repositories to store packages, 2014-06-06),
the URLPath field was dropped from RPC package results. Reintroduce the
field for backwards compatibility, even though it is no longer
recommended to use snapshot tarballs.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
d1fd6f4897
commit
bd9af5f893
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class AurJSON {
|
||||||
$search_data = array();
|
$search_data = array();
|
||||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||||
$resultcount++;
|
$resultcount++;
|
||||||
$pkgbase_name = $row['PackageBase'];
|
$row['URLPath'] = sprintf(config_get('options', 'snapshot_uri'), urlencode($row['PackageBase']));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unfortunately, mysql_fetch_assoc() returns
|
* Unfortunately, mysql_fetch_assoc() returns
|
||||||
|
|
Loading…
Add table
Reference in a new issue