From 313ab3ddd1fc80ca7c869d65fe7f1b110f02b2f6 Mon Sep 17 00:00:00 2001 From: grakiss Date: Fri, 25 Sep 2015 10:40:38 +0800 Subject: 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 --- build/templates/RedHat_juno.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/templates') 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 -- cgit 1.2.3-korg