diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-02 11:07:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-03 10:12:42 +0000 |
commit | 9abab49f2bcac3ea80f96f837e181904bfae8848 (patch) | |
tree | 863f0a8f90ea0ca21e2f7922704fbaee4c0b9650 /bitbake/lib/bb/cooker.py | |
parent | 5fb6b453f633796f28e230420e17b644adde8b11 (diff) | |
download | poky-9abab49f2bcac3ea80f96f837e181904bfae8848.tar.gz |
bitbake: lib/bb: Clean up use of len()
(Bitbake rev: bbbc843e86639604d00d76b1949b94a78cf1d95d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index af794b4c42..194595ce8b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1656,7 +1656,7 @@ class BBCooker: | |||
1656 | # Return a copy, don't modify the original | 1656 | # Return a copy, don't modify the original |
1657 | pkgs_to_build = pkgs_to_build[:] | 1657 | pkgs_to_build = pkgs_to_build[:] |
1658 | 1658 | ||
1659 | if len(pkgs_to_build) == 0: | 1659 | if not pkgs_to_build: |
1660 | raise NothingToBuild | 1660 | raise NothingToBuild |
1661 | 1661 | ||
1662 | ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() | 1662 | ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() |
@@ -1795,10 +1795,10 @@ class CookerCollectFiles(object): | |||
1795 | files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem)[0] ) | 1795 | files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem)[0] ) |
1796 | config.setVar("BBFILES_PRIORITIZED", " ".join(files)) | 1796 | config.setVar("BBFILES_PRIORITIZED", " ".join(files)) |
1797 | 1797 | ||
1798 | if not len(files): | 1798 | if not files: |
1799 | files = self.get_bbfiles() | 1799 | files = self.get_bbfiles() |
1800 | 1800 | ||
1801 | if not len(files): | 1801 | if not files: |
1802 | collectlog.error("no recipe files to build, check your BBPATH and BBFILES?") | 1802 | collectlog.error("no recipe files to build, check your BBPATH and BBFILES?") |
1803 | bb.event.fire(CookerExit(), eventdata) | 1803 | bb.event.fire(CookerExit(), eventdata) |
1804 | 1804 | ||