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

This commit is contained in:
wanghuaz 2013-09-23 10:36:59 +08:00
parent 99f1ac8b79
commit 2433281aa5

View File

@ -808,7 +808,7 @@ sub kit_buildrepo1
# run createrepo
my $cr_opts = '';
if (( $repo->{osbasename} =~ m/rh|RH/ ) &&
if (( $repo->{osbasename} =~ m/rh|RH|centos|CentOS/ ) &&
( $repo->{osmajorversion} eq '5') ) {
$cr_opts = '-s md5';
}