Commits

Jannis Leidel  committed 59abb43

Fix issue 17 -- Create download cache directory in case it doesn't exist

  • Participants
  • Parent commits 1cf9c42
  • Branches trunk

Comments (0)

Files changed (2)

File docs/news.txt

 
 * Fixed bug preventing uninstall of editables with source outside venv.
 
+* Creates download cache directory if not existing.
+
 0.5.1
 -----
 
         target_url = link.url.split('#', 1)[0]
         target_file = None
         if self.download_cache:
+            if not os.path.isdir(self.download_cache):
+                logger.indent -= 2
+                logger.notify('Creating supposed download cache at %s' % self.download_cache)
+                logger.indent += 2
+                os.makedirs(self.download_cache)
             target_file = os.path.join(self.download_cache,
                                        urllib.quote(target_url, ''))
         if (target_file and os.path.exists(target_file)