do not get JSONArray results twice

This commit is contained in:
Thomas Rubini 2022-12-12 22:46:21 +01:00
parent 61830e93f5
commit a8f6901cc7
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -109,7 +109,7 @@ public class ArchDistribution implements Distribution {
futurePackage.complete(null);
return;
}
JSONObject resultJson = json.getJSONArray("results").getJSONObject(0);
JSONObject resultJson = resultsArrayJson.getJSONObject(0);
// get infos except dependencies
name = resultJson.getString("pkgname");