Commit Graph

84 Commits

Author SHA1 Message Date
Aditya Alok
85d52a4ab2
chore(auto update): cleanup some codes
%ci:no-build

Above tag is for previous commit but CI checks head commit for
this, so applying here.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-20 23:56:00 +05:30
Yaksh Bariya
fd130685ae
fixup previous commit 2022-04-20 16:43:14 +05:30
Yaksh Bariya
be24cc6016
fixup: fix hardcoded packages directory in termux_pkg_upgrade_version 2022-04-20 16:23:47 +05:30
Aditya Alok
2157e972d9
fix(auto-update): compare versions with epoch added
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 11:38:21 +05:30
Aditya Alok
d67a38d324
refactor(auto-update): clean up some code
- move epoch addition to termux_pkg_upgrade_version set.
- now termux_pkg_upgrade_version can be given retrived version/tag from
  api, directly.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 11:21:14 +05:30
Aditya Alok
f8cce7faba
fix(auto-update): removal of epoch when TERMUX_PKG_UPDATE_VERSION_REGEXP is set
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 00:39:32 +05:30
Aditya Alok
a7d089c195
fix(auto-updates): move extraction of version from regexp to upgrade version step
previously setting TERMUX_PKG_UPDATE_VERSION_REGEXP had no effect on version being wriiten to
build.sh. It was only used for version comparison.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-01 12:58:16 +05:30
Aditya Alok
64c2ed40b0
fix(termux_github_api_get_tag): addition of '|000' when extra_curl_opts[1] was empty
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-30 09:26:56 +02:00
Aditya Alok
0c412fe300
Revert "fix autoupdate for projects hosted on GitHub"
This reverts commit 9d98e6bd14.
2022-03-30 09:26:53 +02:00
Yaksh Bariya
9d98e6bd14
fix autoupdate for projects hosted on GitHub 2022-03-29 18:44:37 +05:30
Aditya Alok
c23d019058
feat: replace apt-compare-versions script with termux_pkg_is_update_needed
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-29 01:01:12 +05:30
Aditya Alok
292474f082 fix(termux_github_api_get_tag): expansion of newline in graphql api
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
694a941883 fix(auto update): fix few messages, comments and code
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
08ac4aa4db feat(auto update): add script to get newest version from repology api
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
843823e3f9 feat(auto update): add script to get tags from gitlab api
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
ba0688e4c5 feat(auto update): add script to get tags from github api
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
ea595dd257 feat(auto update): add script to extract repology data from its api
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
4af1102029 feat(auto update): add script to update repology tracked packages
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
b518a1599b feat(auto update): add script to update gitlab hosted packages
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
6a061af281 feat(auto update): add script to update github hosted packages
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
03cc6b6ce8 feat(auto update): add utility function to check if update is needed
- compare current and latest version retrived from respective api

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
2e093339b2 feat(auto update): add utility function to upgrade package's version
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
e1d6ab87f6 feat(auto update): add utility function to exit on error
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Aditya Alok
b089c6182b feat(auto update): add script to decide update method
- hook to be called when auto updating.
- it may be overridden by build.sh

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Leonid Pliushch
74e4f276c6
scripts: move script for updating packages to bin directory 2021-10-04 13:22:07 +03:00
Leonid Pliushch
ed9b855275
auto updates: get rid of github-projects.txt
From now, all configuration related to automatic updates should be done
in build.sh scripts.

It requires specifying at least

 TERMUX_PKG_AUTO_UPDATE=true

which indicates that package is eligible for automatic updates, and
optionally

 TERMUX_PKG_AUTO_UPDATE_TAG_REGEXP="$version_regexp"

which specifies a regular expression used to extract the version part
from Git tag.
2021-10-04 13:17:04 +03:00
Ian Hu
4a1895e7f5
auto updates: stop running update tests if received null value from api (#7619)
When this happens, it's time to update github-projects.txt.
2021-09-30 13:34:16 +03:00
Ian Hu
f3a4a04d1e
auto updates: add php-apcu and php-zephir-parser (#7616) 2021-09-29 13:26:08 +03:00
Leonid Pliushch
58364af329
auto updates: fix version detection for libdispatch 2021-09-22 18:15:40 +03:00
Leonid Pliushch
fc12c1c122
auto updates: fix github-projects.txt 2021-09-22 18:08:56 +03:00
Leonid Pliushch
97b17a26a4
check-updates.sh: update error message 2021-09-22 18:08:29 +03:00
Leonid Pliushch
619960c7e8
check-updates.sh: avoid silent error exit 2021-09-22 18:07:31 +03:00
Leonid Pliushch
404a4f5cfe
check-updates.sh: return meaningful error when failed to get the latest version 2021-09-22 18:03:27 +03:00
Lucinda May Phipps
2c8664a2f5
add libcurl to automatic updates 2021-09-15 11:40:27 +01:00
Butta
a8be1327f1 automatic updates: add kak-lsp 2021-09-07 22:49:29 +05:30
Leonid Pliushch
d519fd17a5
automatic updates: remove htop-legacy
This package isn't meant to be updated.
2021-08-30 11:15:56 +03:00
Lucy Phipps
bae74ec4ab
remove ccnet as it's been deleted upstream 2021-08-16 14:42:31 +01:00
Leonid Pliushch
3075d6c443
github-projects.txt: improve version regexp for librav1e 2021-08-15 23:27:38 +03:00
Leonid Pliushch
e8c21e2af8
Revert "fix escapes in github-projects.txt"
When changing the regexp, please read ./scripts/updates/check-updates.sh before.

This reverts commit 07717fd50a.
2021-08-15 23:19:57 +03:00
Lucy Phipps
07717fd50a
fix escapes in github-projects.txt 2021-08-15 21:14:11 +01:00
Lucy Phipps
308ea1234d
add librav1e to automatic updates 2021-08-15 21:09:51 +01:00
Lucy Phipps
30f64f259c
remove apksigner-old from automatic updates
e619191b36
2021-08-05 01:48:33 +01:00
Lucy Phipps
051aace0b2
add libheif and libde265 to automatic updates 2021-08-05 00:51:46 +01:00
Lucy Phipps
6cb48b891a
add libjxl to scripts/updates/github-projects.txt 2021-08-03 10:34:22 +01:00
Leonid Pliushch
5b27021474
automatic updates: perform verification build for at least 2 architectures
Avoid cases when automatically submitted update passed build for AArch64 but
failed for ARM.
2021-07-23 14:48:59 +03:00
Leonid Pliushch
9ebddb02c8
automatic updates: regenerate github-projects.txt 2021-07-22 23:51:17 +03:00
Leonid Pliushch
13a34d834f
automatic updates: skip package if can't update checksum 2021-07-22 15:34:40 +03:00
Leonid Pliushch
c122e4ab59
new package: btfs 2021-07-14 17:12:14 +03:00
MrAdityaAlok
bf80abc6f5 helix : move one step up 2021-06-28 14:34:57 +05:30
MrAdityaAlok
06d9086c93 helix : write in alphabetical order 2021-06-28 14:34:57 +05:30