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:
Lukas Fleischer 2015-06-11 13:40:35 +02:00
parent d1fd6f4897
commit bd9af5f893

View file

@ -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