projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba56939
)
ChecksumFileChecker: Don't compute checksum if it is not needed.
author
Michael Andres
<ma@suse.de>
Thu, 12 Nov 2009 09:57:46 +0000
(10:57 +0100)
committer
Michael Andres
<ma@suse.de>
Thu, 12 Nov 2009 09:57:46 +0000
(10:57 +0100)
zypp/FileChecker.cc
patch
|
blob
|
history
diff --git
a/zypp/FileChecker.cc
b/zypp/FileChecker.cc
index
44a98da
..
d88243c
100644
(file)
--- a/
zypp/FileChecker.cc
+++ b/
zypp/FileChecker.cc
@@
-31,7
+31,6
@@
namespace zypp
{
//MIL << "checking " << file << " file against checksum '" << _checksum << "'" << endl;
callback::SendReport<DigestReport> report;
- CheckSum real_checksum( _checksum.type(), filesystem::checksum( file, _checksum.type() ));
if ( _checksum.empty() )
{
@@
-48,6
+47,7
@@
namespace zypp
}
else
{
+ CheckSum real_checksum( _checksum.type(), filesystem::checksum( file, _checksum.type() ));
if ( (real_checksum != _checksum) )
{
if ( report->askUserToAcceptWrongDigest( file, _checksum.checksum(), real_checksum.checksum() ) )