Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37715080
en ru br
ALT Linux repositórios
S:0.5.15lorg2-alt86
5.0: 0.5.15lorg2-alt26
4.1: 0.5.15lorg2-alt20.M41.1
4.0: 0.5.15lorg2-alt18.M40.1
+updates:0.5.15lorg2-alt18
3.0: 0.5.15cnc6-alt16

Group :: Sistema/Configurações/Pacotes
RPM: apt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: apt-0.5.15cnc5-alt-md5hash-debug.patch
Download


diff -uprk.orig apt-0.5.15cnc5.orig/apt-pkg/acquire-item.cc apt-0.5.15cnc5/apt-pkg/acquire-item.cc
--- apt-0.5.15cnc5.orig/apt-pkg/acquire-item.cc	2003-12-23 23:20:28 +0300
+++ apt-0.5.15cnc5/apt-pkg/acquire-item.cc	2004-01-16 15:26:05 +0300
@@ -824,7 +824,10 @@ void pkgAcqArchive::Done(string Message,
    {
       if (Md5Hash != MD5)
       {
-	 Status = StatError;
+	if (_config->FindB("Debug::pkgAcquire::Auth", false)) {
+	    cerr << "md5 mismatch: " << Md5Hash << "!=" << MD5 << endl;
+	}
+ 	 Status = StatError;
 	 ErrorText = _("MD5Sum mismatch");
 	 Rename(DestFile,DestFile + ".FAILED");
 	 return;
@@ -968,6 +971,9 @@ void pkgAcqFile::Done(string Message,uns
    {
       if (Md5Hash != MD5)
       {
+	if (_config->FindB("Debug::pkgAcquire::Auth", false)) {
+	    cerr << "md5 mismatch: " << Md5Hash << "!=" << MD5 << endl;
+	}
 	 Status = StatError;
 	 ErrorText = "MD5Sum mismatch";
 	 Rename(DestFile,DestFile + ".FAILED");
diff -uprk.orig apt-0.5.15cnc5.orig/cmdline/apt-get.cc apt-0.5.15cnc5/cmdline/apt-get.cc
--- apt-0.5.15cnc5.orig/cmdline/apt-get.cc	2003-12-23 23:30:50 +0300
+++ apt-0.5.15cnc5/cmdline/apt-get.cc	2004-01-16 15:26:05 +0300
@@ -2382,6 +2382,9 @@ bool DoSource(CommandLine &CmdL)
 	     I->Type != "tar")
 	    continue;
 	 
+	if (_config->FindB("Debug::pkgAcquire::Auth",false) == true)
+	    cerr << "I->Path = " << I->Path << ", I->MD5Hash = " << I->MD5Hash << endl;
+
 	 new pkgAcqFile(&Fetcher,Last->Index().ArchiveURI(I->Path),
 			I->MD5Hash,I->Size,
 			Last->Index().SourceInfo(*Last,*I),Src);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009