Bladeren bron

Wreck validation until we can assess ecosystem :/.

Jay Freeman (saurik) 9 jaren geleden
bovenliggende
commit
1242b3bdaf
3 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  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)
    if (TargetIsAllowedToBe(TransactionManager->Target, msg) == true)
    {
    {
-      MessageInsecureRepository(false, msgstr, repo);
+      //MessageInsecureRepository(false, msgstr, repo);
       return true;
       return true;
    }
    }
 
 

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

@@ -141,8 +141,8 @@ APT_PURE bool HashString::usable() const				/*{{{*/
 {
 {
    return (
    return (
       (Type != "Checksum-FileSize") &&
       (Type != "Checksum-FileSize") &&
-      (Type != "MD5Sum") &&
-      (Type != "SHA1") &&
+      //(Type != "MD5Sum") &&
+      //(Type != "SHA1") &&
       !IsConfigured(Type.c_str(), "Untrusted")
       !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;
    bool AuthPossible = false;
    if(FoundHashSum == 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)
    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
    else
       AuthPossible = true;
       AuthPossible = true;