Fix only one rpm copied in to packages during making rhel7 repo 87/1987/1
authorgrakiss <grakiss.wanglei@huawei.com>
Fri, 25 Sep 2015 02:40:38 +0000 (10:40 +0800)
committergrakiss <grakiss.wanglei@huawei.com>
Fri, 25 Sep 2015 02:40:38 +0000 (10:40 +0800)
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>
build/templates/RedHat_juno.tmpl

index 91be615..51cc077 100644 (file)
@@ -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