diff mbox

[core,2/2] baker.py: only print if there is actually a prebaked file available

Message ID 1385025123-32592-1-git-send-email-kim.hansen@prevas.dk
State Superseded
Delegated to: Esben Haabendal
Headers show

Commit Message

kim.hansen@prevas.dk Nov. 21, 2013, 9:12 a.m. UTC
From: Kim Højgaard-Hansen <kiho@prevas.dk>

---
 lib/oelite/baker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/oelite/baker.py b/lib/oelite/baker.py
index dfb99d2..dbe1663 100644
--- a/lib/oelite/baker.py
+++ b/lib/oelite/baker.py
@@ -487,7 +487,8 @@  class OEliteBaker:
                 deploy_dir, package.type,
                 package.arch + (package.recipe.meta.get("EXTRA_ARCH") or ""),
                 "%s_%s_%s.tar"%(package.name, recipe.version, buildhash))
-            debug("will use from build: %s"%(filename))
+            if(os.path.exists(filename)):
+                debug("will use from build: %s"%(filename))
             self.runq.set_package_filename(package.id, filename)
 
         self.runq.mark_primary_runq_depends()