|
* Use one get_pkgver_sha() function for getting the commit SHA from
the pkgver variable of a PKGBUILD
* `makepkg --nobuild` updates the pkgver too, so store the old commit
sha in an associative array using get_pkgver_sha before running
`makepkg --nobuild`.
* After updating the repos use get_pkgver_sha again to check whether
the new pkgver is the same as the previous one using get_pkgver_sha()
instead of the old monstreous get_new_commit() function. If it is do
nothing, if not add the package to the list of packages to rebuild.
* Use config.bash for configuration variables instead of keeping them
inside the script.
* Drop the packages associate array since makepkg is now used to refresh
repositories and make it a normal array just containing the names
of vcs packages instead.
* Since makepkg takes care of refreshing repos we don't need to keep
track of the branches ourself, so drop the branches associative array
from the package list file.
|