Paste number 60607: only check the presence, do not load the stuff yet

Paste number 60607: only check the presence, do not load the stuff yet
Pasted by: zecke
5 days, 5 hours ago
#oe | Context in IRC logs
Paste contents:
Raw Source | XML | Display As
@@ -71,7 +71,7 @@
     def go(self, loc, ud, d):
         """Fetch url"""
 
-        if Fetch.try_mirror(d, ud.localfile):
+        if os.access(os.path.join(data.getVar("Dl_DIR", d, True), ud.localfile), os.R_OK)
             bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists (or was stashed). Skipping git checkout." % ud.localpath)
             return
 

This paste has no annotations.

Colorize as:
Show Line Numbers

Ads absolutely not by Google

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.