summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-11 13:40:35 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-11 13:44:53 +0200
commitbd9af5f8931c6ec2e282dda825c51bcdc7d4aa68 (patch)
treeb0f65bf2b14f77b81f4a17fa39722e6fbbccba11 /web/lib
parentd1fd6f4897b1e7891375c3b170e2cd8854836517 (diff)
downloadaurweb-bd9af5f8931c6ec2e282dda825c51bcdc7d4aa68.tar.xz
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>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aurjson.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 5fb89a9..f25954c 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -228,7 +228,7 @@ class AurJSON {
$search_data = array();
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$resultcount++;
- $pkgbase_name = $row['PackageBase'];
+ $row['URLPath'] = sprintf(config_get('options', 'snapshot_uri'), urlencode($row['PackageBase']));
/*
* Unfortunately, mysql_fetch_assoc() returns