Author: aschnell Date: Fri Mar 13 19:49:41 2009 New Revision: 56124 URL: http://svn.opensuse.org/viewcvs/yast?rev=56124&view=rev Log: - avoid calling external program Modified: trunk/storage/libstorage/src/Storage.cc Modified: trunk/storage/libstorage/src/Storage.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Storage.cc?rev=56124&r1=56123&r2=56124&view=diff ============================================================================== --- trunk/storage/libstorage/src/Storage.cc (original) +++ trunk/storage/libstorage/src/Storage.cc Fri Mar 13 19:49:41 2009 @@ -845,14 +845,8 @@ { bool ret = false; if (access(n1.c_str(), R_OK) == 0 && access(n2.c_str(), R_OK) == 0) - { - SystemCmd cmd("/usr/bin/md5sum " + quote(n1) + " " + quote(n2)); - if (cmd.retcode() == 0 && cmd.stdout().size() >= 2) - { - ret = extractNthWord(0, cmd.stdout()[0]) == extractNthWord(0, cmd.stdout()[1]); - } - } - y2mil("ret:" << ret << " n1:" << n1 << " n2:" << n2); + ret = AsciiFile(n1).lines() == AsciiFile(n2).lines(); + y2deb("ret:" << ret << " n1:" << n1 << " n2:" << n2); return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org