diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-11 12:10:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-25 10:33:15 +0100 |
commit | 71eef845bd6ee8e8f488dca32896b0cc87cf4032 (patch) | |
tree | 01767622ea0d151e6a2739d50e44bae40cd95a63 /bitbake | |
parent | 8f728e33837842d32f6f00a32a8ff651eec9eb83 (diff) | |
download | poky-71eef845bd6ee8e8f488dca32896b0cc87cf4032.tar.gz |
bitbake: fetch2: Clarify different localpaths functions
To avoid confusion, rename the local fetcher localpaths function to
something more specific so it doesn't appear similar to the localpaths
top level function.
(Bitbake rev: ada5ea712cc42fff8c55bd261ee6d7579efd4a68)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/local.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 1a86d8fd81..770021de16 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1234,7 +1234,7 @@ def get_checksum_file_list(d): | |||
1234 | ud = fetch.ud[u] | 1234 | ud = fetch.ud[u] |
1235 | if ud and isinstance(ud.method, local.Local): | 1235 | if ud and isinstance(ud.method, local.Local): |
1236 | found = False | 1236 | found = False |
1237 | paths = ud.method.localpaths(ud, d) | 1237 | paths = ud.method.localfile_searchpaths(ud, d) |
1238 | for f in paths: | 1238 | for f in paths: |
1239 | pth = ud.decodedurl | 1239 | pth = ud.decodedurl |
1240 | if os.path.exists(f): | 1240 | if os.path.exists(f): |
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py index 5332faafe2..8baec7d2e8 100644 --- a/bitbake/lib/bb/fetch2/local.py +++ b/bitbake/lib/bb/fetch2/local.py | |||
@@ -41,9 +41,9 @@ class Local(FetchMethod): | |||
41 | """ | 41 | """ |
42 | Return the local filename of a given url assuming a successful fetch. | 42 | Return the local filename of a given url assuming a successful fetch. |
43 | """ | 43 | """ |
44 | return self.localpaths(urldata, d)[-1] | 44 | return self.localfile_searchpaths(urldata, d)[-1] |
45 | 45 | ||
46 | def localpaths(self, urldata, d): | 46 | def localfile_searchpaths(self, urldata, d): |
47 | """ | 47 | """ |
48 | Return the local filename of a given url assuming a successful fetch. | 48 | Return the local filename of a given url assuming a successful fetch. |
49 | """ | 49 | """ |