From 3c3d97f52ec08a4f1f2d3f8529796573123e7b87 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 23 Jun 2020 20:16:10 -0400 Subject: feed_create(): New function --- diff --git a/src/index.sh b/src/index.sh index 33dca70..275934e 100644 --- a/src/index.sh +++ b/src/index.sh @@ -114,6 +114,22 @@ feed_remove_package() return 0 } +feed_create() +{ + local chan="${1}" + local dist="${2}" + local arch="${3}" + local plat="${4}" + local sect="${5}" + shift 5 + + mkdir -p -- \ + "${base_dir}/feeds/.db/${chan}_${dist}/${arch}_${plat}/${sect}"\ + "${base_dir}/feeds/${chan}/${dist}/${arch}/${plat}/${sect}/.db" + + return 0 +} + update_feeds() { local suite_dirent= -- cgit v0.9.1