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