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

@ -59,6 +59,7 @@ 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 ""