[aur-dev] [PATCH 3/3] Use RPC API version 1 by default

Lukas Fleischer archlinux at cryptocrack.de
Mon Apr 28 12:56:24 EDT 2014


Most AUR helpers don't support the new format yet. Use version 1 of the
API by default. In order to use the new format, "v=2" can be appended to
the list of GET parameters.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 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 6dec083..50d859c 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -11,7 +11,7 @@ include_once("aur.inc.php");
  */
 class AurJSON {
 	private $dbh = false;
-	private $version = 2;
+	private $version = 1;
 	private static $exposed_methods = array(
 		'search', 'info', 'multiinfo', 'msearch', 'suggest'
 	);
-- 
1.9.2



More information about the aur-dev mailing list