Skip to content

Commit c5cfa03

Browse files
add squash support
1 parent dafe677 commit c5cfa03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/extra.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def script2fs_context(input_f, outdir, project):
4343
for target in targets:
4444
symlink(src, str(os.path.join(project, target.lstrip('/'))))
4545
elif command in ['set_metadata', 'set_metadata_recursive']:
46-
dirmode = False if command == 'set_metadata' else True
46+
dirmode = command != 'set_metadata'
4747
fpath, *fargs = args
4848
fpath = fpath.replace("+", "\\+").replace("[", "\\[").replace('//', '/')
4949
if fpath == last_fpath:
@@ -76,7 +76,7 @@ def script2fs_context(input_f, outdir, project):
7676
last_fpath = fpath
7777

7878
# generate config
79-
print("生成fs_config 和 file_contexts")
79+
print("Generate fs_config and file_contexts")
8080
fs_label.sort()
8181
fc_label.sort()
8282
with open(os.path.join(outdir, "system_fs_config"), 'w', newline='\n', encoding='utf-8') as fs_config, open(

0 commit comments

Comments
 (0)