Skip to content

Commit 8f7ce51

Browse files
committed
WIP: support non-flatpak repositories
1 parent e8bbad6 commit 8f7ce51

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn validate_ref (ref_name: &String, req: &HttpRequest) -> Result<(),ApiError>
293293
}
294294
req.has_token_prefix(ref_parts[1])
295295
},
296-
_ => Err(ApiError::BadRequest(format!("Invalid ref_name {}", ref_name))),
296+
_ => Ok(()), // Err(ApiError::BadRequest(format!("Invalid ref_name {}", ref_name))),
297297
}
298298
}
299299

src/jobs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ impl PublishJobInstance {
565565
.arg(&src_repo_arg)
566566
.arg(&repoconfig.path);
567567

568+
for build_ref in build_refs.iter() {
569+
cmd.arg(&build_ref.ref_name);
570+
}
571+
568572
job_log_and_info(self.job_id, conn,
569573
&format!("Importing build to repo {}", repoconfig.name));
570574
do_command(cmd)?;

0 commit comments

Comments
 (0)