Parcourir la source

Wreck validation until we can assess ecosystem :/.

Jay Freeman (saurik) il y a 9 ans
Parent
commit
1242b3bdaf
3 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 1 1
      apt-pkg/acquire-item.cc
  2. 2 2
      apt-pkg/contrib/hashes.cc
  3. 2 2
      apt-pkg/deb/debmetaindex.cc

+ 1 - 1
apt-pkg/acquire-item.cc

@@ -266,7 +266,7 @@ static bool APT_NONNULL(3, 4, 5) AllowInsecureRepositories(InsecureType const ms
 
    if (TargetIsAllowedToBe(TransactionManager->Target, msg) == true)
    {
-      MessageInsecureRepository(false, msgstr, repo);
+      //MessageInsecureRepository(false, msgstr, repo);
       return true;
    }
 

+ 2 - 2
apt-pkg/contrib/hashes.cc

@@ -141,8 +141,8 @@ APT_PURE bool HashString::usable() const				/*{{{*/
 {
    return (
       (Type != "Checksum-FileSize") &&
-      (Type != "MD5Sum") &&
-      (Type != "SHA1") &&
+      //(Type != "MD5Sum") &&
+      //(Type != "SHA1") &&
       !IsConfigured(Type.c_str(), "Untrusted")
    );
 }

+ 2 - 2
apt-pkg/deb/debmetaindex.cc

@@ -440,9 +440,9 @@ bool debReleaseIndex::Load(std::string const &Filename, std::string * const Erro
 
    bool AuthPossible = false;
    if(FoundHashSum == false)
-      _error->Warning(_("No Hash entry in Release file %s"), Filename.c_str());
+      /*_error->Warning(_("No Hash entry in Release file %s"), Filename.c_str())*/;
    else if(FoundStrongHashSum == false)
-      _error->Warning(_("No Hash entry in Release file %s which is considered strong enough for security purposes"), Filename.c_str());
+      /*_error->Warning(_("No Hash entry in Release file %s which is considered strong enough for security purposes"), Filename.c_str())*/;
    else
       AuthPossible = true;