Skip to content

fedya/updates_tracker

Repository files navigation

OpenMandriva Autoupdater

A tool to autoupdate packages

Installation

Generate GitHub API token.

git clone [email protected]:fedya/updates_tracker.git
sudo dnf install abf-c-c mock rpmdevtools
sudo gpasswd -a $USER mock

Than edit new_checker.py you need to replace github_token with obtained one.

Usage

Check sway version

python new_checker.py --package sway
[....]
{
	'package': 'sway',
	'omv_version': '1.1.1',
	'upstream_version': '1.1.1',
	'project_url': 'https://github.com/SirCmpwn/sway/'
}

or check vim

python new_checker.py --package vim
[....]
{
	'package': 'vim',
	'omv_version': '8.1.1592',
	'upstream_version': '8.1.1592',
	'project_url': 'https://github.com/vim/vim/'
}

How it Works

  1. Asks OpenMandriva repo https://github.com/OpenMandrivaAssociation/ for current version
  2. Detect upstream url and make request to github/repology api to pull new version
  3. Run local build with abf-c-c tool
  4. if succeeded run git commit with version autoupdate [1.1.27] message
  5. Git push and run abf build

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages