@@ -135,7 +135,7 @@ def upload(environment: Environment):
135
135
remote_path = reduce (lambda path , c : path / c ,
136
136
local_maven_repo_metadata .group_id .split ('.' ),
137
137
Path (f'oxen.rocks/{ environment .repo } /maven' )
138
- ) / local_maven_repo_metadata .artifact_id / local_maven_repo_metadata . artifact_id
138
+ ) / local_maven_repo_metadata .artifact_id
139
139
sftp_commands .extend (_mkdirs_sftp_commands (remote_path ))
140
140
141
141
# Grab the remote maven metadata if it exists
@@ -172,12 +172,14 @@ def upload(environment: Environment):
172
172
merged_contents = merged_metadata .to_xml ()
173
173
merged_metadata_file = create_and_write_temp_file (merged_contents )
174
174
tmp_files .append (merged_metadata_file )
175
+ os .chmod (merged_metadata_file .name , 0o644 )
175
176
sftp_commands .append (f'put "{ merged_metadata_file .name } " { merged_metadata_filename } ' )
176
177
177
178
# Create hashes for the metadata file
178
179
merged_contents_bytes = merged_contents .encode ('utf-8' )
179
180
for hash_info in _MAVEN_REPO_METADATA_HASHES :
180
181
hash_file = create_and_write_temp_file (hash_info ['hasher' ](merged_contents_bytes ).hexdigest ())
182
+ os .chmod (hash_file .name , 0o644 )
181
183
tmp_files .append (hash_file )
182
184
sftp_commands .append (f'put "{ hash_file .name } " { merged_metadata_filename } .{ hash_info ["ext" ]} ' )
183
185
0 commit comments