db-add, db-update: pkgbase tasks
The following is an overview of what's left unfinished in the original db-add
PoC:
-
For each pkgbase:
-
Shallow clone tag named "
version" from package repository named "
pkgbase" to get PKGBUILD -
GPG-verify tag
-
Run
makepkg --packagelist
to get list of expected packages- Verify against packages collected
-
Do other verification checks between
PKGBUILD
and packages (Check current dbscripts) -
Get rid of clone
-
Copy the packages into the FTP pool
- Existing file is an error
-
Link the packages from the FTP repo dir
- Existing file is an error
-
Copy package data into repo data
-
-
git commit
-
Remove old symlinks
One open question here is: "Do other verification checks between PKGBUILD
and packages (Check current dbscripts)" - especially since dbscripts does not appear to do any verification checks in the first place. Related: #7
See #14 (closed) for copying and linking of packages.