Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
[content] Fix package list when there is no custom content
Browse files Browse the repository at this point in the history
It was exiting too early so we didn't 'touch' the packages file.

Signed-off-by: Murilo Belluzzo <[email protected]>
  • Loading branch information
mbelluzzo-intel committed Oct 23, 2018
1 parent 74db42c commit 5804049
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions release/content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]}))
# ==============================================================================
stage "Finalizing Content"

if [[ -z "$(ls -A ${PKGS_DIR})" ]]; then
info "Custom Content Not Found" " '${PKGS_DIR}' is empty."
exit 0
fi

log_line "Building package list:"
# If no content providers fetched packages, this will act as 'touch'
cat ${WORK_DIR}/${PKG_LIST_TMP}* > ${WORK_DIR}/${PKG_LIST_FILE} 2>/dev/null || true
log_line "OK!" 1

section "Creating Content Repository"
if [[ -z "$(ls -A ${PKGS_DIR})" ]]; then
info "Custom Content Not Found" " '${PKGS_DIR}' is empty."
exit 0
fi

pushd ${PKGS_DIR} > /dev/null
log_line
createrepo_c ${PKGS_DIR} # Output too verbose
log_line # Output too verbose
createrepo_c ${PKGS_DIR} # TODO: log create_repo output and only print its result
log_line
popd > /dev/null

0 comments on commit 5804049

Please sign in to comment.