Skip to content
This repository was archived by the owner on Jun 9, 2019. It is now read-only.

Add "compare_base.py" to help package maintenance #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add "compare_base.py" to help package maintenance #15

wants to merge 4 commits into from

Conversation

fishilico
Copy link
Collaborator

Hello,

A few months ago I've written a small Python script which checks for updates for every base package that needs to be recompiled with SELinux support ("the -selinux packages"). Now that I've cleaned up the code and tested it today, this script is in a kind of alpha state : it is working quite well on my system but it needs to be tested and reviewed, just to be sure there is no obvious bug lying around before pushing to master...

I've written this script with the focus of keeping things simple and intuitive. So compare_base.py doesn't take any command line parameter, reads package information from base_pkglist.txt (new file written in a config-like language, with a documentation header) and downloads with yaourt -G the base packages into a base-noselinux/ directory.

From a maintainer point of view, the major difference is that base_pkglist.txt needs to be updated after each update, because the PKGBUILDs of the -selinux packages don't include the pkgrel field of the base package. This would be quite simple, but as it is easy to forget I've added a check in the script which verify that the pkgver value is the same between PKGBUILD and base_pkglist.txt. An other way of keeping track of the "base pkgrel value" could be adding a variable in PKGBUILD, but I don't like this idea much.

Here are some ideas that weren't implemented but might be added in a future version of this script, if an elegant implementation is found:

Finally, here are minor choices I've made:

  • The script is compatible with both Python 2 and Python 3.
  • I've put a MIT license because I don't like publishing source code with no license, but I can change to something else or remove it if this causes issues.

Nicolas

@Siosm
Copy link
Owner

Siosm commented Apr 24, 2014

Looks great, should really ease package updates! I'll test asap. Thanks.
I'll also make a new push to AUR and to my binary repository at the same time.

fishilico added 3 commits May 12, 2014 22:47
* Introduce a local pacman DB in ./.pacman-db directory, to always get
  the latest available package versions.
* Add a command-line option to use the system package DB (--system-db)
* Improve few warning/error messages
* Update base_pkglist.txt
* Fix some typos
This eases package updating, as Arch developers often make atomic
commits.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants