Create a RPM-directory even if it is not populated with previously built RPMs

--HG--
branch : bgschaid/foam3FixesBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-12-28 17:04:11 +01:00
parent d52f7ee5f6
commit eede987516
2 changed files with 20 additions and 6 deletions

View file

@ -31,9 +31,9 @@
# Populate the local RPM vault
#
# NOTE: This stage is optional. Use it only if you want to move some RPMs
# to the appropriate location for your architcture so the other stage scripts
# to the appropriate location for your architcture so the other stage scripts
# will be able to pick them up
#
#
# Usage: ./AllMake.stage0 file_1.rpm file_2.rpm ... file_n.rpm
#
# Author:
@ -59,7 +59,8 @@ echo ========================================
echo
(
rpm_makeRPMvault
[ "$#" -gt 0 ] && {
rpm_populateRPMvault "$@"
}
@ -71,5 +72,3 @@ echo ========================================
echo
# ----------------------------------------------------------------- end-of-file

View file

@ -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 ""