From 7de12e709be31cf601772e3a32a40cc7ef20cd63 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 29 Oct 2023 15:58:52 +0800 Subject: [PATCH] bump: deviceinfo --- anda/lib/deviceinfo/deviceinfo.spec | 4 ++-- anda/lib/deviceinfo/update.rhai | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 anda/lib/deviceinfo/update.rhai diff --git a/anda/lib/deviceinfo/deviceinfo.spec b/anda/lib/deviceinfo/deviceinfo.spec index 25191fc02c..08e5402306 100644 --- a/anda/lib/deviceinfo/deviceinfo.spec +++ b/anda/lib/deviceinfo/deviceinfo.spec @@ -3,11 +3,11 @@ %forgemeta Name: deviceinfo -Version: 0.2.0 +Version: 0.2.1 Release: %autorelease Summary: Library to detect and configure devices License: GPLv3+ -URL: https://gitlab.com/ubports/development/core/deviceinfo +URL: %forgeurl Source0: %{url}/-/archive/%commit/deviceinfo-%commit.tar.gz Source1: https://salsa.debian.org/ubports-team/deviceinfo/-/raw/master/debian/device-info.1 diff --git a/anda/lib/deviceinfo/update.rhai b/anda/lib/deviceinfo/update.rhai new file mode 100644 index 0000000000..d5b41d6102 --- /dev/null +++ b/anda/lib/deviceinfo/update.rhai @@ -0,0 +1,3 @@ +let txt = get("https://gitlab.com/api/v4/projects/24742019/repository/tags"); +let ver = txt.json_arr()[0].name; +rpm.version(ver);