summaryrefslogtreecommitdiffstats
path: root/src/recipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/recipe.rs')
-rw-r--r--src/recipe.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/recipe.rs b/src/recipe.rs
index 3599ded..5e8f9a3 100644
--- a/src/recipe.rs
+++ b/src/recipe.rs
@@ -3,7 +3,7 @@ use std::collections::BTreeMap;
use crate::db::model::{Recipe, SourceEntry};
use crate::error::{Error, Result};
-pub fn parse_srcinfo(text: &str) -> Result<Recipe> {
+fn parse_srcinfo(text: &str) -> Result<Recipe> {
let mut r = Recipe::default();
let mut current: Option<String> = None;
let mut base_seen = false;
@@ -236,7 +236,7 @@ fn split_array_elements(s: &str) -> Vec<String> {
out.into_iter().filter(|e| !e.is_empty()).collect()
}
-pub fn parse_source_entries(list: &[String]) -> Result<Vec<SourceEntry>> {
+fn parse_source_entries(list: &[String]) -> Result<Vec<SourceEntry>> {
let mut out = Vec::new();
for (index, raw) in list.iter().enumerate() {
let s = raw.trim();
@@ -316,15 +316,7 @@ pub fn recipe_from_tree(files: &BTreeMap<String, String>) -> Result<Recipe> {
Ok(r)
}
-pub fn is_diffable(path: &str) -> bool {
- let ext = path.rsplit('.').next().unwrap_or("");
- !matches!(
- ext,
- "png" | "jpg" | "gif" | "ico" | "pdf" | "gz" | "zst" | "xz" | "bz2" | "zip" | "deb" | "rpm"
- )
-}
-
-pub fn pkgbuild_bodies(text: &str) -> String {
+fn pkgbuild_bodies(text: &str) -> String {
let mut out = String::new();
let mut inside = false;
for line in text.lines() {