ask user if a file exists but does not have a checksum (#162797)
authorStanislav Visnovsky <visnov@suse.cz>
Tue, 11 Apr 2006 07:31:27 +0000 (07:31 +0000)
committerStanislav Visnovsky <visnov@suse.cz>
Tue, 11 Apr 2006 07:31:27 +0000 (07:31 +0000)
package/libzypp.changes
zypp/source/susetags/SuseTagsImpl.cc

index d942fff1326ac0057e910603716dc6b740ab5cc1..44bfab572ad5965c842c5a4668cf81fa3c1d24af 100644 (file)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Tue Apr 11 09:30:14 CEST 2006 - visnov@suse.cz
+
+- ask user if a file exists but does not have a checksum (#162797)
+- rev 3044 
+
 -------------------------------------------------------------------
 Mon Apr 10 22:39:34 CEST 2006 - jsrain@suse.de
 
index f762ada03ab6c9204e8c21126011d6cf0889e505..55b59899c4007afba719f95d099fa267d5ceee88 100644 (file)
@@ -458,6 +458,14 @@ namespace zypp
           CheckSum checksum = _prodImpl->_descr_files_checksums[key];
           if (checksum.empty())
           {
+           callback::SendReport<KeyRingReport> report;
+
+           if ( report->askUserToAcceptUnsignedFile(path) )
+           {
+               MIL << path << " user accepted unsigned file " << endl;
+               return;
+           }
+
             ZYPP_THROW (Exception( "Error, Missing checksum for " + path.asString() ) ); 
           }
           else