diff --git a/anda/apps/openasar-canary/anda.hcl b/anda/apps/openasar-canary/anda.hcl index 5391d351ee..96fe647a6b 100644 --- a/anda/apps/openasar-canary/anda.hcl +++ b/anda/apps/openasar-canary/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "openasar-canary.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/apps/openasar-canary/update.rhai b/anda/apps/openasar-canary/update.rhai new file mode 100644 index 0000000000..8efb397ee3 --- /dev/null +++ b/anda/apps/openasar-canary/update.rhai @@ -0,0 +1,11 @@ +let req = new_req("https://api.github.com/repos/GooseMod/OpenAsar/commits/HEAD"); +req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); +let _sha = json(req.get()) @ "sha"; +let sha = _sha.str(); +let cur = find("%define commit (.+)", rpm.f, 1); +if sha != cur { + print(`openasar-canary: ${cur} -> ${sha}`); + rpm.f = sub("%define commit (.+)", `%define commit ${sha}`, rpm.f); +} else { + print("openasar-canary: Up to date!"); +} diff --git a/anda/audio/distrho/anda.hcl b/anda/audio/distrho/anda.hcl index b0dcdf5022..58948eef5f 100644 --- a/anda/audio/distrho/anda.hcl +++ b/anda/audio/distrho/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "distrho.spec" - update = "" } -} \ No newline at end of file +} diff --git a/anda/dart/anda.hcl b/anda/dart/anda.hcl index 3e1878cf82..0cc716f7fd 100644 --- a/anda/dart/anda.hcl +++ b/anda/dart/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "dart.spec" - update = "" } } diff --git a/anda/dnf-plugins-core/anda.hcl b/anda/dnf-plugins-core/anda.hcl index b3f3210fdb..d3843ee8ee 100644 --- a/anda/dnf-plugins-core/anda.hcl +++ b/anda/dnf-plugins-core/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "dnf-plugins-core.spec" - update = "" } -} \ No newline at end of file +} diff --git a/anda/games/minecraft-java/anda.hcl b/anda/games/minecraft-java/anda.hcl index 2966f65d21..f46b6ba026 100644 --- a/anda/games/minecraft-java/anda.hcl +++ b/anda/games/minecraft-java/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "minecraft-java.spec" - update = "" } } diff --git a/anda/go/curlie/update.rhai b/anda/go/curlie/update.rhai new file mode 100644 index 0000000000..cae7df861c --- /dev/null +++ b/anda/go/curlie/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("rs/curlie")); diff --git a/anda/lib/libappimage/anda.hcl b/anda/lib/libappimage/anda.hcl index 077939a2d4..ad07678564 100644 --- a/anda/lib/libappimage/anda.hcl +++ b/anda/lib/libappimage/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "libappimage.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/lib/libbismuth/anda.hcl b/anda/lib/libbismuth/anda.hcl index 1217609a4e..bfffa40be4 100644 --- a/anda/lib/libbismuth/anda.hcl +++ b/anda/lib/libbismuth/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "libbismuth.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/lib/libhelium/anda.hcl b/anda/lib/libhelium/anda.hcl index 779347aa17..60feedb5a3 100644 --- a/anda/lib/libhelium/anda.hcl +++ b/anda/lib/libhelium/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "libhelium.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/moby-extras/moby-buildx/update.rhai b/anda/moby-extras/moby-buildx/update.rhai new file mode 100644 index 0000000000..46556d11b8 --- /dev/null +++ b/anda/moby-extras/moby-buildx/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("docker/buildx")); diff --git a/anda/moby-extras/moby-compose/update.rhai b/anda/moby-extras/moby-compose/update.rhai new file mode 100644 index 0000000000..b9641daa12 --- /dev/null +++ b/anda/moby-extras/moby-compose/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("docker/compose")); diff --git a/anda/mock-configs/anda.hcl b/anda/mock-configs/anda.hcl index d2219947ce..602bebe425 100644 --- a/anda/mock-configs/anda.hcl +++ b/anda/mock-configs/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "anda-mock-configs.spec" - update = "" } } diff --git a/anda/others/tau-helium/anda.hcl b/anda/others/tau-helium/anda.hcl index 557a9f4e23..22a3b962a6 100644 --- a/anda/others/tau-helium/anda.hcl +++ b/anda/others/tau-helium/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "tau-helium.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/others/tau-hydrogen/anda.hcl b/anda/others/tau-hydrogen/anda.hcl index 50e8688258..38c2c730fa 100644 --- a/anda/others/tau-hydrogen/anda.hcl +++ b/anda/others/tau-hydrogen/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "tau-hydrogen.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/rust/bat-extras/anda.hcl b/anda/rust/bat-extras/anda.hcl index fb618cbc88..1b38b3121b 100644 --- a/anda/rust/bat-extras/anda.hcl +++ b/anda/rust/bat-extras/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "bat-extras.spec" - update = "" } } diff --git a/anda/rust/bat-extras/update.rhai b/anda/rust/bat-extras/update.rhai new file mode 100644 index 0000000000..f1b34745a2 --- /dev/null +++ b/anda/rust/bat-extras/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("eth-p/bat-extras")); diff --git a/anda/rust/pop-launcher/anda.hcl b/anda/rust/pop-launcher/anda.hcl index 0d1d2426a9..2c781b14db 100644 --- a/anda/rust/pop-launcher/anda.hcl +++ b/anda/rust/pop-launcher/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "pop-launcher.spec" - update = "" } } diff --git a/anda/rust/pop-launcher/update.rhai b/anda/rust/pop-launcher/update.rhai new file mode 100644 index 0000000000..9e345dc572 --- /dev/null +++ b/anda/rust/pop-launcher/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("pop-os/launcher")); diff --git a/anda/rust/sccache/anda.hcl b/anda/rust/sccache/anda.hcl index 690f6d8f81..f03c092535 100644 --- a/anda/rust/sccache/anda.hcl +++ b/anda/rust/sccache/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "rust-sccache.spec" - update = "" } } diff --git a/anda/rust/sccache/update.rhai b/anda/rust/sccache/update.rhai new file mode 100644 index 0000000000..4a50e54657 --- /dev/null +++ b/anda/rust/sccache/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("mozilla/sccache")); diff --git a/anda/rust/youki/update.rhai b/anda/rust/youki/update.rhai new file mode 100644 index 0000000000..1a65ed0082 --- /dev/null +++ b/anda/rust/youki/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("containers/youki")); diff --git a/anda/rust/zellij/anda.hcl b/anda/rust/zellij/anda.hcl index 87f9db1078..e1d1ac2340 100644 --- a/anda/rust/zellij/anda.hcl +++ b/anda/rust/zellij/anda.hcl @@ -1,6 +1,5 @@ project "pkg" { rpm { spec = "rust-zellij.spec" - update = "" } } diff --git a/anda/tools/appimagelauncher/anda.hcl b/anda/tools/appimagelauncher/anda.hcl index af8edabb70..7e16d179ff 100644 --- a/anda/tools/appimagelauncher/anda.hcl +++ b/anda/tools/appimagelauncher/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "appimagelauncher.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/tools/appimagelauncher/update.rhai b/anda/tools/appimagelauncher/update.rhai new file mode 100644 index 0000000000..ff0c73841c --- /dev/null +++ b/anda/tools/appimagelauncher/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("TheAssassin/AppImageLauncher")); diff --git a/anda/tools/electron/anda.hcl b/anda/tools/electron/anda.hcl index 33a20c9882..d04d1f76bd 100644 --- a/anda/tools/electron/anda.hcl +++ b/anda/tools/electron/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "electron.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/tools/gcm-core/anda.hcl b/anda/tools/gcm-core/anda.hcl index 3d14ced214..c20a830a98 100644 --- a/anda/tools/gcm-core/anda.hcl +++ b/anda/tools/gcm-core/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "gcm-core.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/tools/gcm-core/update.rhai b/anda/tools/gcm-core/update.rhai new file mode 100644 index 0000000000..10dbb7fdf2 --- /dev/null +++ b/anda/tools/gcm-core/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("GitCredentialManager/git-credential-manager")); diff --git a/anda/tools/lorax/anda.hcl b/anda/tools/lorax/anda.hcl index fdd27b3301..33814007f8 100644 --- a/anda/tools/lorax/anda.hcl +++ b/anda/tools/lorax/anda.hcl @@ -10,6 +10,7 @@ project "pkg" { branch = "lorax-38.3-1" write_tar = "true" spec = "lorax.spec" + update = "" git_get = "git clone https://github.com/weldr/lorax.git" } } diff --git a/anda/tools/melody/anda.hcl b/anda/tools/melody/anda.hcl index 56c2351c17..c78c208201 100644 --- a/anda/tools/melody/anda.hcl +++ b/anda/tools/melody/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "melody.spec" update = "" } -} \ No newline at end of file +} diff --git a/anda/tools/muon/anda.hcl b/anda/tools/muon/anda.hcl index 1aa30bd3c4..f02f50dafe 100644 --- a/anda/tools/muon/anda.hcl +++ b/anda/tools/muon/anda.hcl @@ -3,4 +3,4 @@ project "pkg" { spec = "muon.spec" update = "" } -} \ No newline at end of file +} diff --git a/update.sh b/update.sh index 56b91227ab..fc97e83fc6 100755 --- a/update.sh +++ b/update.sh @@ -1,13 +1,9 @@ -#!/bin/bash -x - -python -m ensurepip -python -m pip install -r requirements.txt - search() { for folder in $1/*; do - if [ -f "$folder/chkupdate.py" ]; then - (cd $folder && python chkupdate.py) + if [ -f "$folder/update.rhai" ]; then continue + else + echo $folder fi x=0 for thing in $folder/*; do @@ -18,5 +14,3 @@ search() { } search anda - -exit 0