Skip to content

Commit dc477df

Browse files
authored
cinnamon-spices-makepot: Ensure proper file permissions (#623)
1 parent 423ade1 commit dc477df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cinnamon-spices-makepot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def make_pot(uuid: str, _all: bool = False):
111111
check=True)
112112
os.chdir(uuid_dir)
113113
pot_path = f'po/{pot_file}'
114+
os.chmod(pot_path, 0o0644)
114115
glade_list = glob('**/*.glade', recursive=True)
115116
glade_list += glob('**/*.ui', recursive=True)
116117
for glade_file in glade_list:
@@ -137,6 +138,9 @@ def make_pot(uuid: str, _all: bool = False):
137138
check=True)
138139
glob_path = 'po/*.po' if _all else f'{uuid}/**/*.po'
139140
po_list = glob(glob_path, recursive=True)
141+
for po_file in po_list:
142+
os.chmod(po_file, 0o0644)
143+
140144
for po_file in po_list:
141145
*po_dir_list, po_ext = po_file.split('/')
142146
po_dir_str = '/'.join(po_dir_list)

0 commit comments

Comments
 (0)