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>
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'