Commit Graph

28 Commits

Author SHA1 Message Date
Aditya Alok
d72177e5ce
feat(auto-update): create issue if update fails
- now a new issue with output logs will be created and assigned to
  $GITHUB_ACTOR, if auto update fails for a package

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-23 09:47:32 +05:30
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
Aditya Alok
3baa1a3a36
refactor(auto update): replace pkg_dir with TERMUX_PKG_BUILDER_DIR
- this variable will store path of directory containing packages
  `build.sh` file.
- this is a more standard approach than specifying `pkg_dir` each time

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-20 23:56:00 +05:30
Henrik Grimler
56dbb9cf80
CI: specify distribution in repo.json as well
x11-repo uses distribution x11, and root-repo distribution root.
Store this information in the json file as well, and parse it to set
both REPOSITORY_NAME and REPOSITORY_DISTRIBUTION.

Also remove unnecessary `< repo.json` from jq command, jq accepts the
file as an argument.

This fixes upload issues to x11-repo and root-repo.
2022-04-20 16:37:36 +02:00
Yaksh Bariya
fd130685ae
fixup previous commit 2022-04-20 16:43:14 +05:30
Yaksh Bariya
3422559ad2
monorepo: adapt scripts/bin to new changes 2022-04-18 13:57:19 +05:30
Aditya Alok
ae0caf3bd5
feat(auto-update): do not log for disabled auto-update
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 20:20:11 +05:30
Aditya Alok
442174ca9a
refactor(auto-update): move checking unique packages to standalone script
Hmmm..., why do we even need to check whether package is unique or not if we have
TERMUX_PKG_AUTO_UPDATE=true?

It should be checked before enabling auto-update.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-03 00:48:29 +05:30
Lucinda May Phipps
bf4f0708b9
auto-updates: fix unique package detection 2022-03-31 09:45:47 +01:00
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
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
bd99580451 refactor(update-packages): new auto-update system
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
Henrik Grimler
33354fdc39
mv a couple of scripts from scripts/ to scripts/bin/
These ones are not run by, and are not really related to, the build
system, so should be safe to move them to the bin/ subdirectory.
2022-03-13 17:23:23 +01:00
xeffyr
43b2f17506 scripts: update 'update-checksum' & 'revbump' 2022-01-31 20:21:59 +02:00
Leonid Pliushch
74e4f276c6
scripts: move script for updating packages to bin directory 2021-10-04 13:22:07 +03:00
Leonid Pliushch
ad35391987
scripts/bin: remove unused script update-whatprovides-db 2021-09-20 19:11:12 +03:00
Leonid Pliushch
3871376858
scripts/bin: disable pager for git in revbump and update-checksum 2021-09-20 19:10:32 +03:00
Leonid Pliushch
34f4564b37 update scripts/bin/update-whatprovides-db 2020-11-22 17:25:25 +00:00
Leonid Pliushch
2e79ec5aef Revert "update scripts/bin/update-whatprovides-db"
This reverts commit f493a38d3d93f9c7726d2f83e2fdd14a1abcd6f2.

Script is broken in last update, at least it no longer able to
process debfiles with very large amount of files.
2020-11-22 16:03:06 +00:00
Lucy Phipps
80ff50d6bd update scripts/bin/update-whatprovides-db
also add reminder comment in packages/whatprovides/build.sh
2020-11-22 17:16:38 +02:00
Leonid Pliushch
1a635bc2aa update scripts/bin/update-whatprovides-db 2020-11-22 01:15:26 +00:00
Leonid Pliushch
5b3f90e730 update scripts/bin/update-whatprovides-db
Avoid '.' entries in database.
2020-11-21 23:27:24 +00:00
Leonid Pliushch
45e4c49269 update ./scripts/bin/update-whatprovides-db 2020-11-21 22:24:14 +00:00
Leonid Pliushch
d0c0189281 add script for updating Whatprovides database
See https://github.com/termux/whatprovides...
2020-11-21 20:52:48 +02:00
Leonid Pliushch
ea0ea5f925 scripts/bin/{revbump,update-checksum}: strip traling / from package name 2020-06-21 19:24:53 +03:00
Leonid Pliushch
c086de3165 scripts/bin/update-checksum: fix generation of commit message 2020-06-21 17:37:59 +03:00
Leonid Pliushch
179d353ed4 scripts: add 'update-checksum' - source SHA-256 updating script 2020-06-21 14:47:22 +03:00
Leonid Pliushch
7f64b751fe scripts: add 'revbump' - revision bumping script 2020-06-21 14:47:19 +03:00