diff options
| -rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 8a1b5f79c1..a3e98d1b50 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -153,7 +153,7 @@ do_fetch[vardeps] += "SRCREV" | |||
| 153 | python base_do_fetch() { | 153 | python base_do_fetch() { |
| 154 | 154 | ||
| 155 | src_uri = (d.getVar('SRC_URI') or "").split() | 155 | src_uri = (d.getVar('SRC_URI') or "").split() |
| 156 | if len(src_uri) == 0: | 156 | if not src_uri: |
| 157 | return | 157 | return |
| 158 | 158 | ||
| 159 | try: | 159 | try: |
| @@ -170,7 +170,7 @@ do_unpack[cleandirs] = "${@d.getVar('S') if os.path.normpath(d.getVar('S')) != o | |||
| 170 | 170 | ||
| 171 | python base_do_unpack() { | 171 | python base_do_unpack() { |
| 172 | src_uri = (d.getVar('SRC_URI') or "").split() | 172 | src_uri = (d.getVar('SRC_URI') or "").split() |
| 173 | if len(src_uri) == 0: | 173 | if not src_uri: |
| 174 | return | 174 | return |
| 175 | 175 | ||
| 176 | try: | 176 | try: |
| @@ -688,7 +688,7 @@ python () { | |||
| 688 | if os.path.basename(p) == machine and os.path.isdir(p): | 688 | if os.path.basename(p) == machine and os.path.isdir(p): |
| 689 | paths.append(p) | 689 | paths.append(p) |
| 690 | 690 | ||
| 691 | if len(paths) != 0: | 691 | if paths: |
| 692 | for s in srcuri.split(): | 692 | for s in srcuri.split(): |
| 693 | if not s.startswith("file://"): | 693 | if not s.startswith("file://"): |
| 694 | continue | 694 | continue |
| @@ -721,7 +721,7 @@ do_cleansstate[nostamp] = "1" | |||
| 721 | 721 | ||
| 722 | python do_cleanall() { | 722 | python do_cleanall() { |
| 723 | src_uri = (d.getVar('SRC_URI') or "").split() | 723 | src_uri = (d.getVar('SRC_URI') or "").split() |
| 724 | if len(src_uri) == 0: | 724 | if not src_uri: |
| 725 | return | 725 | return |
| 726 | 726 | ||
| 727 | try: | 727 | try: |
