]> git.saurik.com Git - apt.git/commitdiff
apt-get: allow non-root --print-uris build-dep
authorJulian Andres Klode <jak@debian.org>
Fri, 14 Aug 2015 21:45:17 +0000 (23:45 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 14 Aug 2015 21:47:30 +0000 (23:47 +0200)
Closes: #283400
cmdline/apt-get.cc

index 80e344740029af3fcaf5e5f2286016d946622d77..acf6c21555749a73030ae9e8a32505199e91c698 100644 (file)
@@ -966,8 +966,10 @@ static bool DoBuildDep(CommandLine &CmdL)
    CacheFile Cache;
 
    _config->Set("APT::Install-Recommends", false);
+
+   bool WantLock = _config->FindB("APT::Get::Print-URIs", false) == false;
    
-   if (Cache.Open(true) == false)
+   if (Cache.Open(WantLock) == false)
       return false;
 
    if (CmdL.FileSize() <= 1)