Author: dmacvicar Date: Tue Aug 7 10:42:38 2007 New Revision: 6501 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6501&view=rev Log: - check that checksum is not empty before comparing it Modified: trunk/libzypp/zypp/Fetcher.cc Modified: trunk/libzypp/zypp/Fetcher.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Fetcher.cc?rev=6501&r1=6500&r2=6501&view=diff ============================================================================== --- trunk/libzypp/zypp/Fetcher.cc (original) +++ trunk/libzypp/zypp/Fetcher.cc Tue Aug 7 10:42:38 2007 @@ -128,7 +128,7 @@ if ( PathInfo( cached_file ).isExist() ) { // check the checksum - if ( is_checksum( cached_file, (*it_res).location.checksum() ) ) + if ( is_checksum( cached_file, (*it_res).location.checksum() ) && (! (*it_res).location.checksum().empty() ) ) { // cached MIL << "file " << (*it_res).location.filename() << " found in previous cache. Using cached copy." << endl; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org