Bläddra i källkod

bitbake: fetch2/__init__.py: Error if lockfile path invalid

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

(Bitbake rev: 81158071508cc68c39db7d501370872f44d335cc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie 9 år sedan
förälder
incheckning
d01042eda9
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      bitbake/lib/bb/fetch2/__init__.py

+ 4 - 1
bitbake/lib/bb/fetch2/__init__.py

@@ -1188,8 +1188,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'