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.