File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,15 @@ def get_filepath(self, project: str) -> str:
78
78
file_name_suffix = "tar.gz" if self .args .distribution == "tar" else self .args .distribution
79
79
if self .args .artifact_type == "staging" :
80
80
if self .args .distribution == "yum" :
81
- return f"{ self .base_url_staging } { project } /{ self .args .version } /{ self .args .build_number [project ]} /{ self .args .platform } /{ self .args .arch } /rpm/dist/{ project } /{ project } -{ self .args .version } .staging.repo" # noqa: E501
82
- return f"{ self .base_url_staging } { project } /{ self .args .version } /{ self .args .build_number [project ]} /{ self .args .platform } /{ self .args .arch } /{ self .args .distribution } /dist/{ project } /{ project } -{ self .args .version } -{ self .args .platform } -{ self .args .arch } .{ file_name_suffix } " # noqa: E501
81
+ return (
82
+ f"{ self .base_url_staging } { project } /{ self .args .version } /{ self .args .build_number [project ]} /{ self .args .platform } /"
83
+ f"{ self .args .arch } /rpm/dist/{ project } /{ project } -{ self .args .version } .staging.repo"
84
+ )
85
+ return (
86
+ f"{ self .base_url_staging } { project } /{ self .args .version } /{ self .args .build_number [project ]} /{ self .args .platform } /"
87
+ f"{ self .args .arch } /{ self .args .distribution } /dist/{ project } /{ project } -{ self .args .version } -{ self .args .platform } -"
88
+ f"{ self .args .arch } .{ file_name_suffix } "
89
+ )
83
90
if self .args .distribution == "yum" :
84
91
return f"{ self .base_url_production } { project } /{ self .args .version [0 :1 ]} .x/{ project } -{ self .args .version [0 :1 ]} .x.repo"
85
92
return f"{ self .base_url_production } { project } /{ self .args .version } /{ project } -{ self .args .version } -{ self .args .platform } -{ self .args .arch } .{ file_name_suffix } "
Original file line number Diff line number Diff line change @@ -124,13 +124,15 @@ def __init__(self) -> None:
124
124
action = "store_true" ,
125
125
default = False ,
126
126
help = "(optional) Validate digest only; will not run docker to test API" ,
127
- dest = "validate_digest_only" )
127
+ dest = "validate_digest_only"
128
+ )
128
129
group .add_argument (
129
130
"--using-staging-artifact-only" ,
130
131
action = "store_true" ,
131
132
default = False ,
132
133
help = "(optional) Use only staging artifact to run docker and API test, will not validate digest" ,
133
- dest = "using_staging_artifact_only" )
134
+ dest = "using_staging_artifact_only"
135
+ )
134
136
135
137
args = parser .parse_args ()
136
138
You can’t perform that action at this time.
0 commit comments