feat: create repo file if doesn't exist
This commit is contained in:
parent
d3066683da
commit
db1d7657a7
1 changed files with 9 additions and 1 deletions
|
@ -95,10 +95,18 @@ impl Ctx {
|
|||
let msg = r.into();
|
||||
db.create_repository(&msg).await.unwrap();
|
||||
federate.create_repository(&msg).await.unwrap();
|
||||
} else {
|
||||
if !federate
|
||||
.repository_exists(&r.name, &r.owner.username, r.hostname)
|
||||
.await
|
||||
.unwrap()
|
||||
{
|
||||
let msg = r.into();
|
||||
federate.create_repository(&msg).await.unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// sleep_fut.await.unwrap();
|
||||
page += 1;
|
||||
}
|
||||
federate.tar().await.unwrap();
|
||||
|
|
Loading…
Reference in a new issue