defect 3474 - fix parsing of rpm names for kitpkgdeps
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a57b1bbfa6
commit
1bb3f61a84
@ -976,6 +976,9 @@ sub kit_cleanall
|
||||
{
|
||||
|
||||
print "running buildkit cleanall... \n";
|
||||
|
||||
&kit_cleantar;
|
||||
|
||||
if ( -d $::build_dir ) {
|
||||
if ( system("rm -Rf $::build_dir/* ") ) {
|
||||
print "Error removing contents of $::build_dir \n";
|
||||
@ -993,6 +996,7 @@ sub kit_cleanall
|
||||
system("rm -Rf $::workdir/debbuild");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -1945,7 +1949,7 @@ sub update_kitcomp_kitpkgdeps
|
||||
if ( $d_short eq $d ) {
|
||||
# no version-release comparisons specified for this kitpkgdep
|
||||
# do we have an rpm file in the repo?
|
||||
my $cmd = "rpm -q --qf \"%{NAME} >= %{VERSION}-%{RELEASE},\" -p $repodir/$d-*.rpm 2>/dev/null";
|
||||
my $cmd = "rpm -q --qf \"%{NAME} >= %{VERSION}-%{RELEASE},\" -p $repodir/$d\[0-9\]-*.rpm 2>/dev/null";
|
||||
if ($::VERBOSE) {
|
||||
print "running rpm query to get version-release info: \n $cmd \n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user