From b5f3b1b526fb1831276419df9b63d472412e3ddc Mon Sep 17 00:00:00 2001 From: xq2005 Date: Tue, 9 Jul 2013 07:15:39 +0000 Subject: [PATCH] ubuntu and debian ship SHA.pm instand of SHA1.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index f34b63933..575bcafaa 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -73,7 +73,12 @@ use IO::Socket; use IO::Select; use Class::Struct; use Digest::MD5 qw(md5); -use Digest::SHA1 qw(sha1); +if ( -f "/etc/debian_verion" ){ + use Digest::SHA qw(sha1); +} +else{ + use Digest::SHA1 qw(sha1); +} use POSIX qw(WNOHANG mkfifo strftime); use Fcntl qw(:flock);