move clean repos command in case when local_repo used

Change-Id: I8e0a7a0abd3dfefc0416b0157427aef777e2d8b2
Closes-Bug: 1396377
This commit is contained in:
xiaodongwang 2014-11-26 11:50:36 -08:00
parent 7fee12db99
commit 6e1f17d0f8
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,3 @@
mkdir -p /tmp/repo_backup
mv /etc/yum.repos.d/* /tmp/repo_backup/
$SNIPPET('kickstart_yum.conf')
## $SNIPPET('kickstart_centos_base_repo')
## $SNIPPET('kickstart_centos_debuginfo_repo')

View File

@ -1,4 +1,6 @@
#if $getVar("local_repo","") != ""
mkdir -p /tmp/repo_backup
mv /etc/yum.repos.d/* /tmp/repo_backup/
cat << EOF > /etc/yum.repos.d/Compass.repo
[compass_repo]
name=Compass yum repo