Commit Graph

21 Commits

Author SHA1 Message Date
Jia Yuan Lo
f419f759d8 auto-update: clean before each successive build 2023-06-18 09:10:55 +09:00
Tee KOBAYASHI
ac0d70a63a auto-update: Exclude epoch in version comparison
to avoid warnings like

```
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2:0.8.3 is an invalid version and will not be supported in a future release
```
2023-01-10 01:54:19 +00: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
Uchiha Kakashi
d751eb2a15 fix(scripts): typo in termux_pkg_upgrade_version 2022-10-15 13:46:59 +08:00
Chongyun Lee
a9d64807d4 fix(scripts): building failure when auto-updating 2022-10-15 08:09:37 +05:30
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
Chongyun Lee
400826006e fix(scripts): fix jq error
Hope that this will fix #12313
2022-10-10 20:55:53 +08:00
Yaksh Bariya
23f5e3e9b7 scripts(bin/*): adapt commit messages to new guidelines 2022-10-10 14:34:45 +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
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
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
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