aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2015-09-25 10:40:38 +0800
committergrakiss <grakiss.wanglei@huawei.com>2015-09-25 10:40:38 +0800
commit313ab3ddd1fc80ca7c869d65fe7f1b110f02b2f6 (patch)
tree83db6371d42462971c695e91b770a7bbf4ecfaed
parent47cfbaa9070f5a12272627ff3648e28388f279f5 (diff)
Fix only one rpm copied in to packages during making rhel7 repo
JIRA: COMPASS-78 - find . -name "*.rpm",here "*.rpm" should be quoted, otherwise it will be automatically expand to files matched pattern in current directory at first, then execute the "find" command.so it turns to find some specific file other than some wildcard file Change-Id: Ibb8e868c9a0f820e1c5d7bd659caf347c8660af9 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
-rw-r--r--build/templates/RedHat_juno.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/templates/RedHat_juno.tmpl b/build/templates/RedHat_juno.tmpl
index 91be6151..51cc0772 100644
--- a/build/templates/RedHat_juno.tmpl
+++ b/build/templates/RedHat_juno.tmpl
@@ -76,7 +76,7 @@ yum -y install $pkg --downloadonly
mkdir -p /centos7-juno-ppa/{Packages,repodata}
-find /var/cache/yum/ -name *.rpm | xargs -i cp {} /centos7-juno-ppa/Packages/
+find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /centos7-juno-ppa/Packages/
rm /centos7-juno-ppa/Packages/selinux-policy* -f
rm /centos7-juno-ppa/Packages/systemd* -f