]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cdrom.cc
prefer upgrading installed provides satisfier
[apt.git] / apt-pkg / cdrom.cc
index 29eeca066a21e0120df49660a713efbb7a9d2421..5613459e73a657d9b63e8609c302be08b0933be4 100644 (file)
@@ -61,10 +61,10 @@ bool pkgCdrom::FindPackages(string CD,
       return _error->Errno("chdir","Unable to change to %s",CD.c_str());
 
    // Look for a .disk subdirectory
-   if (DirectoryExists(".disk") == true)
+   if (InfoDir.empty() == true)
    {
-      if (InfoDir.empty() == true)
-        InfoDir = CD + ".disk/";
+      if (DirectoryExists(".disk") == true)
+        InfoDir = InfoDir + CD + ".disk/";
    }
 
    // Don't look into directories that have been marked to ingore.