userland-tools: fix python3.9 SyntaxWarning
| | |
| | | |
| | | # Only 'openindiana' category. |
| | | category = line.split('/')[0] |
| | | if category is 'openindiana': |
| | | if category == 'openindiana': |
| | | continue |
| | | |
| | | filename = os.path.basename(line) |
| | |
| | | |
| | | # Add meta-packages/history only if we build the main repository, where |
| | | # subdir is equal to 'components'. |
| | | if subdir is 'components': |
| | | if subdir == 'components': |
| | | paths.append('meta-packages/history') |
| | | # Add encumbered/meta-packages/history only if we build the encumbered repository |
| | | if subdir is 'components/encumbered': |
| | | if subdir == 'components/encumbered': |
| | | paths.append('encumbered/meta-packages/history') |
| | | |
| | | paths = list(set(paths)) |
| | |
| | | # |
| | | def mangle_elf(manifest, action, src, dest): |
| | | strip_elf_runpath = action.attrs.pop('mangler.elf.strip_runpath', 'true') |
| | | if strip_elf_runpath is 'false': |
| | | if strip_elf_runpath == 'false': |
| | | return |
| | | |
| | | # |
| | |
| | | # |
| | | def mangle_cddl(manifest, action, text): |
| | | strip_cddl = action.attrs.pop('mangler.strip_cddl', 'false') |
| | | if strip_cddl is 'false': |
| | | if strip_cddl == 'false': |
| | | return text |
| | | cddl_re = re.compile('^[^\n]*CDDL HEADER START.+CDDL HEADER END[^\n]*$', |
| | | re.MULTILINE|re.DOTALL) |