[aur-dev] [PATCH] Reintroduce the URLPath field
Lukas Fleischer
lfleischer at archlinux.org
Thu Jun 11 11:43:32 UTC 2015
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 the snapshot tarballs.
Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
web/lib/aurjson.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.4.2
More information about the aur-dev
mailing list