Browse Source

take out debug logging, and add in some other patches

Kevin Bradley 10 months ago
parent
commit
62f60c55f0
3 changed files with 1 additions and 4 deletions
  1. 0 1
      apt-pkg/acquire.cc
  2. 0 2
      apt-pkg/deb/debmetaindex.cc
  3. 1 1
      methods/aptmethod.h

+ 0 - 1
apt-pkg/acquire.cc

@@ -603,7 +603,6 @@ static void CheckDropPrivsMustBeDisabled(pkgAcquire const &Fetcher)
    struct passwd const * const pw = getpwnam(SandboxUser.c_str());
    if (pw == NULL)
    {
-      _error->Warning(_("No sandbox user '%s' on the system, can not drop privileges"), SandboxUser.c_str());
       _config->Set("APT::Sandbox::User", "");
       return;
    }

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

@@ -458,8 +458,6 @@ bool debReleaseIndex::Load(std::string const &Filename, std::string * const Erro
 
    if (CheckValidUntil == true)
    {
-      if (Date == 0)
-          _error->Warning( _("Invalid '%s' entry in Release file %s"), "Date", Filename.c_str());
 
       std::string const Label = Section.FindS("Label");
       std::string const StrValidUntil = Section.FindS("Valid-Until");

+ 1 - 1
methods/aptmethod.h

@@ -70,7 +70,7 @@ public:
    }
    bool DebugEnabled() const
    {
-       return true; //comment this in for more debug info
+       //return true; //comment this in for more debug info
       if (methodNames.empty())
 	 return false;
       auto const sni = std::find_if_not(methodNames.crbegin(), methodNames.crend(), hasDoubleColon);