Przeglądaj źródła

* fix regression about not working --print-uris in "install"

Michael Vogt 20 lat temu
rodzic
commit
a546101c24
2 zmienionych plików z 4 dodań i 10 usunięć
  1. 0 9
      cmdline/apt-get.cc
  2. 4 1
      debian/changelog

+ 0 - 9
cmdline/apt-get.cc

@@ -1411,15 +1411,6 @@ bool DoUpgrade(CommandLine &CmdL)
 /* Install named packages */
 bool DoInstall(CommandLine &CmdL)
 {
-   // Lock the list directory
-   FileFd Lock;
-   if (_config->FindB("Debug::NoLocking",false) == false)
-   {
-      Lock.Fd(GetLock(_config->FindDir("Dir::State::Lists") + "lock"));
-      if (_error->PendingError() == true)
-        return _error->Error(_("Unable to lock the list directory"));
-   }
-   
    CacheFile Cache;
    if (Cache.OpenForInstall() == false || 
        Cache.CheckDeps(CmdL.FileSize() != 1) == false)

+ 4 - 1
debian/changelog

@@ -3,8 +3,11 @@ apt (0.6.43.3) unstable; urgency=low
   * apt-pkg/deb/deblistparser.cc:
     - don't explode on a DepCompareOp in a Provides line, but warn about
       it and ignore it otherwise (thanks to James Troup for reporting it)
+  * cmdline/apt-get.cc:
+    - don't lock the lists directory in DoInstall, breaks --print-uri 
+      (thanks to James Troup for reporting it)
 
- -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 19 Jan 2006 01:05:52 +0100
+ -- 
 
 apt (0.6.43.2) unstable; urgency=low