summaryrefslogtreecommitdiffstats
path: root/pki/scripts/compose_pki_tps_packages
diff options
context:
space:
mode:
Diffstat (limited to 'pki/scripts/compose_pki_tps_packages')
-rwxr-xr-xpki/scripts/compose_pki_tps_packages18
1 files changed, 16 insertions, 2 deletions
diff --git a/pki/scripts/compose_pki_tps_packages b/pki/scripts/compose_pki_tps_packages
index c84f94d13..eb7738641 100755
--- a/pki/scripts/compose_pki_tps_packages
+++ b/pki/scripts/compose_pki_tps_packages
@@ -100,8 +100,22 @@ rm -f ${PKI_TPS_SRPMS_DIR}/${PKI_TPS}-${PKI_TPS_VERSION}*.rpm
cp -p ${PKI_SPECS_FILE} ${PKI_TPS_SPECS_DIR}
-if [ ${USE_PATCH_FILES} -eq 1 ] ; then
- Retrieve_Source_Tarball_and_Patches ${PKI_SPECS_FILE} ${PKI_PATCHES_DIR} ${PKI_TPS_SOURCES_DIR}
+##
+## If specified, copy all Patches from the spec file URL to SOURCES
+##
+
+if [ ${FETCH_PATCH_FILES} -eq 1 ] ; then
+ Fetch_Patch_Files ${PKI_SPECS_FILE} ${PKI_TPS_SOURCES_DIR}
+fi
+
+
+##
+## Copy the specified Source Tarball from the spec file URL to SOURCES, or
+## Generate a fresh Source Tarball from the local source
+##
+
+if [ ${FETCH_SOURCE_TARBALL} -eq 1 ] ; then
+ Fetch_Source_Tarball ${PKI_SPECS_FILE} ${PKI_TPS_SOURCES_DIR}
else
##
## Always start with a new 'pki-tps' staging directory