Fixing bug 3406, using md5 hash algorithm for centos 5.x during createrepo

This commit is contained in:
wanghuaz 2013-09-23 10:50:54 +08:00
parent 5be4960ffe
commit 53599a891c

View File

@ -3557,7 +3557,7 @@ sub NEW_kit_addpkgs
my $repodir = "$::base_repodir/$kr->{kitreponame}";
if ( -d $repodir ) {
my $cr_opts = '';
if (( $kr->{osbasename} =~ m/rh|RH/ ) &&
if (( $kr->{osbasename} =~ m/rh|RH|centos|CentOS/ ) &&
( $kr->{osmajorversion} eq '5') ) {
$cr_opts = '-s md5';
}