Commit Graph

50 Commits

Author SHA1 Message Date
Jia Yuan Lo 1db46f2b67
fix(auto-updater): increase gh issue list limit to 10000 (#18788)
To prevent making duplicated issues over and over
2023-12-22 16:34:34 +08:00
Twaik Yont 2f85dd8025 fix(update-packages): error caused by copy-pasting line 2023-12-21 13:46:08 +02:00
Twaik Yont 1f2b014f09 script(update-packages): put link to package inside created issue 2023-12-21 11:11:44 +02:00
Twaik Yont 3022b58bcb scripts(update-packages): speed-up package update checks 2023-12-17 09:19:56 +02:00
Twaik Yont 3e67f05ed9 scripts(update-packages): revert unintentional change 2023-11-27 19:50:00 +02:00
Twaik Yont 278567a642 enhance(*): improve auto-updating for git-dependent packages 2023-11-27 19:40:32 +02:00
Chongyun Lee 03a66e4cde scripts(bin/revbump): also search subpackages 2023-11-17 21:45:43 +08:00
Twaik Yont 00fea0a9de scripts(update-packages): add an option to opt-out updates 2023-10-15 18:20:11 +03:00
Twaik Yont 5f14e97ade enhance(scripts/termux_pkg_upgrade_version): adding an ability to process sed regexps for transformating version during automatic updates 2023-10-14 23:24:32 +03:00
Lucy Phipps 5ed8471923
revert this mess 2023-09-03 08:46:13 +01:00
Lucy Phipps 69028bfb72
actually fix all uses of properties.sh 2023-09-03 08:37:10 +01:00
Ivan Max a46e3e9357
build-package.sh: adding compilation based on glibc (#16901)
[skip ci]
2023-08-30 23:40:08 +03:00
Henrik Grimler 20bd0f0dc0
scripts: use git+[...] instead of [...].git for git urls
Not all source code hosters support the .git suffix (for example
sourcehut).  Use a git+ prefix instead to indicate that a url is a git
repo.
2023-01-01 18:31:38 +01:00
Tee KOBAYASHI 4ee2e32f7b Use `bump(repo/pkgname)` as the mnemonic for bump
I just can't tolerate the previous one shown in Actions timeline anymore.
2022-11-20 13:27:48 +09:00
T-Dynamos 6e1b4dba2b
chore(scripts): improve revbump 2022-11-19 22:38:11 +01:00
Yaksh Bariya 5e7968852f
chore(CONTRIBUTING.md): Remove unnecessary message for update and downgrade
Earlier convention:
  upgpkg(<repo>/<package>): update to <ver>
Newer convention:
  upgpkg(<repo>/<package>): <ver>
Similarly same for dwnpkg.

Thanks to @truboxl for the suggestion
2022-10-11 14:01:46 +05:30
Yaksh Bariya 23f5e3e9b7
scripts(bin/*): adapt commit messages to new guidelines 2022-10-10 14:34:45 +05:30
Aditya Alok 50411f24a9
feat(auto update): update packages in there build order
Currently, we assume that a package is not coupled with any specific
version of it's dependencies. Therefore, we update them individually
without any specific order. But this assumtion fails for package
families like lxqt which requires all it's family members to be of
specific version.

Although we would have to manually update dependencies in such
situation (if they can not be auto-updated), but we can atleast
decide order of updation for packages that can be auto-updated.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-05-07 21:23:32 +05:30
Aditya Alok a32429090d
fix(check-auto-update): do not exit if a pkg cannot be auto-updated
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-30 15:10:51 +05:30
Aditya Alok a43f6b8eba
feat(scripts/check-auto-update): improve script, minor clean up
- add checks for 'newest-tag' as fallback, if 'latest-release-tag' is not found
- adhere to DRY principle

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-30 03:34:19 +05:30
Aditya Alok 81007d0053
refactor(auto-update): do not append same log again
- Now auto update will be disable until issue is closed.
- Assign to GITHUB_ACTOR. Myself if GITHUB_ACTOR is Termux bot.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-28 01:37:40 +05:30
Aditya Alok 0de794c1d1
feat(auto-update): handle large logs while creating issues
- GitHub api only allows 65536 chars long body in one go.
- Now body beyond 65536 limit will be appended after a gap of 5 sec.
  Appending (or patching) does not consider already present body, so we
  can bypass this limit.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-24 15:14:00 +05:30
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