Commit 35fa67c8 authored by dcoutadeur dcoutadeur's avatar dcoutadeur dcoutadeur

Update generation package with 1.4.7 version of Lemon + update repository...

Update generation package with 1.4.7 version of Lemon + update repository instead of creating a new one each time (references #LEMONLDAP-986)


git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@4943 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 739c73ea
......@@ -40,7 +40,7 @@ set -e
LEMON_DOWNLOAD_SITE="http://download.forge.ow2.org/lemonldap/"
CPAN2RPM="http://search.cpan.org/CPAN/authors/id/E/EC/ECALDER/cpan2rpm-2.028.tar.gz"
SRC_PACKAGE="lemonldap-ng-1.4.6-1.el7.src.rpm"
SRC_PACKAGE="lemonldap-ng-1.4.7-1.el7.src.rpm"
PKG_DEPENDENCIES="apache2 \
apache2-mod_perl \
......@@ -397,10 +397,42 @@ build_repository()
{
cd ~
LREPO="lemonldap-sles12-repository"
mkdir -p $LREPO
cp ~/packages/dependencies/additional/* $LREPO/
cp ~/packages/lemonldap/* $LREPO/
createrepo ~/$LREPO
if [ -d "$LREPO" ]; then
# Repository already exists
echo "The repository already exists"
echo "Just update with new files "
# move only new dependency packages to repository
for f in ~/packages/dependencies/additional/*; do
if [ ! -e $LREPO/${f##*/} ]; then
cp ~/packages/dependencies/additional/${f##*/} $LREPO/
fi
done
# move only new lemonldap packages to repository
for f in ~/packages/lemonldap/*; do
if [ ! -e $LREPO/${f##*/} ]; then
cp ~/packages/lemonldap/${f##*/} $LREPO/
fi
done
# update repository with new packages
createrepo --update ~/$LREPO
else
# Repository does not already exist
echo "Repository does not already exist"
echo "Create new one"
mkdir -p $LREPO
cp ~/packages/dependencies/additional/* $LREPO/
cp ~/packages/lemonldap/* $LREPO/
# create repository
createrepo ~/$LREPO
fi
echo
echo "OK: repository created in ~/$LREPO"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment