diff options
| -rw-r--r-- | meta/classes-global/insane.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index db34b4bdb5..dc46857a19 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
| @@ -555,7 +555,10 @@ python populate_lic_qa_checksum() { | |||
| 555 | import hashlib | 555 | import hashlib |
| 556 | lineno = 0 | 556 | lineno = 0 |
| 557 | license = [] | 557 | license = [] |
| 558 | m = hashlib.new('MD5', usedforsecurity=False) | 558 | try: |
| 559 | m = hashlib.new('MD5', usedforsecurity=False) | ||
| 560 | except TypeError: | ||
| 561 | m = hashlib.new('MD5') | ||
| 559 | for line in f: | 562 | for line in f: |
| 560 | lineno += 1 | 563 | lineno += 1 |
| 561 | if (lineno >= beginline): | 564 | if (lineno >= beginline): |
