All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fetch2/__init__.py: Error if lockfile path invalid
@ 2016-02-26 17:50 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-02-26 17:50 UTC (permalink / raw)
  To: bitbake-devel

Rather than create ".lock" and ".done" files with no name, error,
forcing us to fix the cases where this is a problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 2d31493..6d00703 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1185,8 +1185,11 @@ class FetchData(object):
             basepath = self.localpath
         elif self.localpath:
             basepath = dldir + os.sep + os.path.basename(self.localpath)
-        else:
+        elif self.basepath or self.basename:
             basepath = dldir + os.sep + (self.basepath or self.basename)
+        else:
+             bb.fatal("Can't determine lock path for url %s" % url)
+
         self.donestamp = basepath + '.done'
         self.lockfile = basepath + '.lock'
 




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-26 17:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-26 17:50 [PATCH] fetch2/__init__.py: Error if lockfile path invalid Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.