@@ -226,13 +226,13 @@ def update_channel_data_files(channel):
226226 if channel in get_ggd_channels ():
227227
228228 if not os .path .isdir (LOCAL_REPO_DIR ):
229- os .makedirs (LOCAL_REPO_DIR )
229+ os .makedirs (LOCAL_REPO_DIR , mode = 0o777 )
230230 if not os .path .isdir (CHANNEL_DATA_DIR ):
231- os .makedirs (CHANNEL_DATA_DIR )
231+ os .makedirs (CHANNEL_DATA_DIR , mode = 0o777 )
232232
233233 channel_dir = os .path .join (CHANNEL_DATA_DIR , channel )
234234 if not os .path .isdir (channel_dir ):
235- os .makedirs (channel_dir )
235+ os .makedirs (channel_dir , mode = 0o777 )
236236
237237 ## Dowload json file
238238 channeldata_url = os .path .join (
@@ -261,9 +261,9 @@ def update_genome_metadata_files():
261261 """
262262
263263 if not os .path .isdir (LOCAL_REPO_DIR ):
264- os .makedirs (LOCAL_REPO_DIR )
264+ os .makedirs (LOCAL_REPO_DIR , mode = 0o777 )
265265 if not os .path .isdir (GENOME_METADATA_DIR ):
266- os .makedirs (GENOME_METADATA_DIR )
266+ os .makedirs (GENOME_METADATA_DIR , mode = 0o777 )
267267
268268 ## Download the json files
269269 build_url = "https://raw.githubusercontent.com/gogetdata/ggd-metadata/master/genome_metadata/build_to_species.json"
@@ -401,14 +401,14 @@ def update_installed_pkg_metadata(
401401
402402 ## Make metadata dir if it doesn't exist
403403 if not os .path .isdir (ggd_info_dir ):
404- os .makedirs (ggd_info_dir )
405- os .makedirs (os .path .join (ggd_info_dir , "noarch" ))
404+ os .makedirs (ggd_info_dir , mode = 0o777 )
405+ os .makedirs (os .path .join (ggd_info_dir , "noarch" ), mode = 0o777 )
406406 with open (os .path .join (ggd_info_dir , "channeldata.json" ), "w" ) as f :
407407 f .write ("{}" )
408408
409409 ## Create the "noarch" dir
410410 if not os .path .isdir (os .path .join (ggd_info_dir , "noarch" )):
411- os .makedirs (os .path .join (ggd_info_dir , "noarch" ))
411+ os .makedirs (os .path .join (ggd_info_dir , "noarch" ), mode = 0o777 )
412412
413413 ## Check add packages
414414 if add_packages and remove_old == False :
0 commit comments