From ecfadb511801f0b0c54222f6c7552a1b3d458a8d Mon Sep 17 00:00:00 2001 From: arifali Date: Thu, 19 Apr 2012 22:31:05 +0000 Subject: [PATCH] update script to create mklocalrepo.sh once the repository is created git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12283 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- build-ubunturepo | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build-ubunturepo b/build-ubunturepo index 2ebc47e7a..7a1e77977 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -153,6 +153,14 @@ __EOF__ mv $xcat_core_path/latest_version $repo_xcat_core_path/xcat-core_latest-build + cat << '__EOF__' > $repo_xcat_core_path/mklocalrepo.sh +. /etc/lsb-release +cd `dirname $0` +echo deb file://"`pwd`" $DISTRIB_CODENAME main > /etc/apt/sources.list.d/xcat-core.list +__EOF__ + + chmod 775 $repo_xcat_core_path/mklocalrepo.sh + if [ -z "$local_flag" ] then echo "###############################" @@ -211,6 +219,14 @@ __EOF__ reprepro -b $repo_xcat_dep_path includedeb $DISTRIB_CODENAME $file; done + cat << '__EOF__' > $repo_xcat_dep_path/mklocalrepo.sh +. /etc/lsb-release +cd `dirname $0` +echo deb file://"`pwd`" $DISTRIB_CODENAME main > /etc/apt/sources.list.d/xcat-dep.list +__EOF__ + + chmod 775 $repo_xcat_core_path/mklocalrepo.sh + if [ -z "$local_flag" ] then echo "##############################"