Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/port/model.rs
Original file line numberDiff line numberDiff line change
Expand Up@@ -99,7 +99,6 @@ pub struct Update {
pub struct Source {
pub url: Option<UrlSpec>,
pub github: Option<String>,
pub tag: Option<String>,
pub glob: Option<String>,
#[serde(default)]
pub r#match: Vec<String>,
Expand Down
3 changes: 0 additions & 3 deletions src/port/new.rs
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,10 +48,8 @@ fn arr(items: &[String]) -> String {
/// Render a `pkg.toml`. Fields a human must still fill are left as TODO so
/// validation and review catch them rather than them being silently wrong.
pub fn render(s: &Scaffold) -> String {
let owner = s.repo.split('/').next().unwrap_or("upstream");
let mut out = String::from("[pkg]\n");
out.push_str(&format!("name = {:?}\n", s.name));
out.push_str(&format!("id = {:?}\n", format!("{owner}.{}", s.name)));
out.push_str(&format!("type = {:?}\n", s.kind.as_str()));
out.push_str(&format!(
"description = {:?}\n",
Expand All@@ -67,7 +65,6 @@ pub fn render(s: &Scaffold) -> String {
arr(&[s.maintainer.unwrap_or("TODO <you@example.com>").to_string()])
));
out.push_str("category = [\"TODO\"]\n");
out.push_str("tag = [\"TODO\"]\n");
out.push_str("repology = [\"TODO\"]\n");

out.push_str("\n[host]\nsupported = [\"x86_64-linux\", \"aarch64-linux\"]\n");
Expand Down
Loading