diff --git a/anda/lib/deviceinfo/deviceinfo.spec b/anda/lib/deviceinfo/deviceinfo.spec index 08e5402306..189306b0e7 100644 --- a/anda/lib/deviceinfo/deviceinfo.spec +++ b/anda/lib/deviceinfo/deviceinfo.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/deviceinfo -%global commit 5dada778683ef8a1da13d0459768d8048429a646 +%global commit 7e819c16e28b785f1ea1a2cf85b4d1376cc79f19 %forgemeta Name: deviceinfo diff --git a/anda/lib/deviceinfo/update.rhai b/anda/lib/deviceinfo/update.rhai index d5b41d6102..377061e75b 100644 --- a/anda/lib/deviceinfo/update.rhai +++ b/anda/lib/deviceinfo/update.rhai @@ -1,3 +1,3 @@ -let txt = get("https://gitlab.com/api/v4/projects/24742019/repository/tags"); -let ver = txt.json_arr()[0].name; -rpm.version(ver); +let o = get("https://gitlab.com/api/v4/projects/24742019/repository/tags").json_arr()[0]; +rpm.global("commit", o.commit.id); +rpm.version(o.name);