From 00cd0a4e67363bb78f87622ff31b3a893da4123c Mon Sep 17 00:00:00 2001 From: mellor Date: Tue, 16 Apr 2013 15:16:53 +0000 Subject: [PATCH] defect 3482 - fix find wildcarding git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-buildkit/bin/buildkit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index 44056f03a..340ed7d56 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -1963,7 +1963,7 @@ sub build_kitcomp print "Error running rpmbuild command for kit component $comp->{kitcompname} meta package\n"; return 1; } - my @built_rpms = `find $rpmbuild_dir/RPMS -name *.rpm`; + my @built_rpms = `find $rpmbuild_dir/RPMS -name "*.rpm"`; foreach my $rpm (@built_rpms) { chomp($rpm); if ( system ("cp -fp $rpm $repodir") ) { @@ -2210,7 +2210,7 @@ sub build_kitcomp_debian{ return 1; } my $repodir = $::base_repodir."/".$repo{kitreponame}; - my @builtdebs = `find $::workdir/debbuild -maxdepth 1 -name *.deb`; + my @builtdebs = `find $::workdir/debbuild -maxdepth 1 -name "*.deb"`; foreach my $deb (@builtdebs) { chomp($deb); if ( system ("cp -fp $deb $repodir") ) { @@ -3153,7 +3153,7 @@ sub kit_addpkgs print "error running debian build cmd for kit component $non_native_basename meta package.\n"; return 1; } - my @debs = `find $tdir -maxdepth 1 -name *.deb`; + my @debs = `find $tdir -maxdepth 1 -name "*.deb"`; foreach my $debname (@debs){ chomp($debname); if ( system("mv -f $debname $repodir") ){ @@ -3203,7 +3203,7 @@ sub kit_addpkgs } # Copy the built meta rpm to repo - my @built_rpms = `find $rpmbuild_dir/RPMS -name *.rpm`; + my @built_rpms = `find $rpmbuild_dir/RPMS -name "*.rpm"`; foreach my $rpm (@built_rpms) { chomp($rpm); if ( system ("cp -fp $rpm $repodir") ) {