summarylogtreecommitdiffstats
path: root/pacman_entries.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pacman_entries.sh')
-rw-r--r--pacman_entries.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/pacman_entries.sh b/pacman_entries.sh
new file mode 100644
index 000000000000..b4e84f448e4f
--- /dev/null
+++ b/pacman_entries.sh
@@ -0,0 +1,18 @@
+# Functions for generating pacman entries for repositories
+
+function generate_pacman_entry() {
+ local repository_name="$1"; shift
+
+ if [[ ! -z "${repository_name}" ]]; then
+ # generate the entry for a single package
+ echo "[${LOCAL_REPOSITORY_NAME}]"
+ echo "SigLevel = Optional TrustAll"
+ echo "Server = ${LOCAL_REMOTE_PACKAGE_DIR}/"
+ echo
+ else
+ # generate the entry for all packages
+ for reponame in "${PATH_REPOSITORIES}/*"; do
+ bash repotools -G "$(basename ${reponame})"
+ done
+ fi
+} \ No newline at end of file