2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 10:10:22 +00:00

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

This commit is contained in:
wanghuaz
2013-09-22 18:21:59 +08:00
parent eb16d571a0
commit 25563cc4eb

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';
}