* change: move git_check_repo and git_calc_pkgver to lib.sh
* bug: reset run_cmd_output to nil before use (f'n globals)
* fix: use kernel_version_full_no_hyphen when getting packages to sign instead of zol_version.
* fix: Explicitly add package sig to package_list to copy to repo
Init scripts have been refactored to improve readability. The most
important aspect of this refactor is that automated testing has been
implemented using Qemu. Eventually we will get to the point of
automatically building new archzfs packages as soon as a new kernel is
released to the arch testing repo, after that the tests will be used to
determine if the archzfs packages can be pushed out to aur and
archzfs.com.
Closes#22Closes#31Closes#38Closes#48
Previously an attempt would be made to copy the source packages in the i686 and
x86_64 directories to the backup. This would cause cp error out with "cp: will
not overwrite just created <file>". The fix envolved looping through
exist_pkg_mv_list and creating exist_pkg_mv_list_uniq without the i686 package
sources.
When the archiso is updated, usually the packages are no longer in the build
directories. This update adds the AZB_PACKAGE_BACKUP_DIR variable to allow
repo.sh to gather packages from the backup directory to add to
demz-repo-archiso.
If the either the i686 or x86_64 packages are missing, an attempt was still
made to copy the packages using the cp_list string to the non existent
destination repo. This caused the script to terminate on error of cp with no
destination repository. The fix was to check cp_list for "". If cp_list is
empty, there are no packages to copy and the for loop is continued to the next
architecture.
The script was rewritten group file operations into single commands. For
instance, adding packages to a repo does it in one go instead of multiple
separate adds.
The functions now reference $PWD instead of taking a path argument. A typo was
also fixed to a misnamed variable that caused the $FULL_VERSION variable to
cause misnamed files.