This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[content] Add step to create downstream content repo
Also, generalize its creation so it can use more content providers besides Koji. Signed-off-by: Alex Jaramillo <[email protected]>
- Loading branch information
1 parent
72140e5
commit 0fdee7a
Showing
8 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (C) 2018 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) | ||
|
||
. ${SCRIPT_DIR}/../globals.sh | ||
. ${SCRIPT_DIR}/../common.sh | ||
|
||
. ./config/config.sh | ||
|
||
# ============================================================================== | ||
# MAIN | ||
# ============================================================================== | ||
stage "Finalizing Content" | ||
|
||
if [[ -z "$(ls -A ${PKGS_DIR})" ]]; then | ||
info "Custom Content Not Found" " '${PKGS_DIR}' is empty." | ||
exit 0 | ||
fi | ||
|
||
section "Creating Content Repository" | ||
pushd ${PKGS_DIR} > /dev/null | ||
log_line | ||
createrepo_c ${PKGS_DIR} # Output too verbose | ||
log_line | ||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters