Create a RPM-directory even if it is not populated with previously built RPMs
--HG-- branch : bgschaid/foam3FixesBranch
This commit is contained in:
parent
d52f7ee5f6
commit
eede987516
2 changed files with 20 additions and 6 deletions
3
ThirdParty/AllMake.stage0
vendored
3
ThirdParty/AllMake.stage0
vendored
|
@ -59,6 +59,7 @@ echo ========================================
|
|||
echo
|
||||
|
||||
(
|
||||
rpm_makeRPMvault
|
||||
|
||||
[ "$#" -gt 0 ] && {
|
||||
rpm_populateRPMvault "$@"
|
||||
|
@ -71,5 +72,3 @@ echo ========================================
|
|||
echo
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
|
||||
|
|
17
ThirdParty/tools/makeThirdPartyFunctionsForRPM
vendored
17
ThirdParty/tools/makeThirdPartyFunctionsForRPM
vendored
|
@ -213,6 +213,22 @@ rpm_install()
|
|||
--dbpath $buildBase/rpmDB --force --nodeps;
|
||||
}
|
||||
|
||||
#
|
||||
# Populate the local RPM vault with comand-line supplied list of RPMs
|
||||
#
|
||||
rpm_makeRPMvault()
|
||||
{
|
||||
rpmVault=$buildBase/RPMS/$architecture
|
||||
|
||||
if [ ! -e $rpmVault ]; then
|
||||
echo ""
|
||||
echo "Making directory for RPM-files $rpmVault"
|
||||
echo ""
|
||||
|
||||
mkdir -p $rpmVault
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Populate the local RPM vault with comand-line supplied list of RPMs
|
||||
#
|
||||
|
@ -224,7 +240,6 @@ rpm_populateRPMvault()
|
|||
echo ""
|
||||
echo " Moving the following RPMs to the local RPM vault: `echo $@`"
|
||||
|
||||
mkdir -p $rpmVault
|
||||
mv $@ $rpmVault
|
||||
|
||||
echo ""
|
||||
|
|
Reference in a new issue