summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 16:44:51 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:19:01 -0500
commiteefb787983d2608511214bcd682f3d8271bac60c (patch)
treed61bf500bb5ae2332f66162a28f434195960ab6a
parent62142bcbac5f457b2172c7311741f90fedf0c776 (diff)
Normalize to load config then local_config then db-functions
-rwxr-xr-xcreate-repo2
-rwxr-xr-xcron-jobs/ftpdir-cleanup2
-rwxr-xr-xcron-jobs/integrity-check2
-rwxr-xr-xcron-jobs/repo-sanity-check2
-rwxr-xr-xcron-jobs/sourceballs2
-rwxr-xr-xcron-jobs/sourceballs22
-rwxr-xr-xcron-jobs/update-web-db2
-rwxr-xr-xdb-check-nonfree2
-rwxr-xr-xdb-list-unsigned-packages2
-rwxr-xr-xdb-move2
-rwxr-xr-xdb-remove2
-rwxr-xr-xdb-repo-add2
-rwxr-xr-xdb-repo-remove2
-rwxr-xr-xdb-update2
-rwxr-xr-xrepo-restore-to-normal2
-rwxr-xr-xtesting2x2
-rwxr-xr-xyf-update2
17 files changed, 17 insertions, 17 deletions
diff --git a/create-repo b/create-repo
index 24b890d..21a2a9c 100755
--- a/create-repo
+++ b/create-repo
@@ -1,8 +1,8 @@
#!/bin/bash
# Creates repository structure
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -eq 0 ]; then
msg "Usage: ${0##*/} repo1 [repo2 ... repoX]"
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 8d691b5..b290138 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/../db-functions"
. "$(dirname "$(readlink -e "$0")")/../config"
+. "$(dirname "$(readlink -e "$0")")/../db-functions"
clean_pkg() {
local pkg
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
index 05a56a5..86a8f1d 100755
--- a/cron-jobs/integrity-check
+++ b/cron-jobs/integrity-check
@@ -2,8 +2,8 @@
dirname="$(dirname "$(readlink -e "$0")")"
-. "${dirname}/../db-functions"
. "${dirname}/../config"
+. "${dirname}/../db-functions"
script_lock
diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check
index 2aa7892..ee4c061 100755
--- a/cron-jobs/repo-sanity-check
+++ b/cron-jobs/repo-sanity-check
@@ -1,8 +1,8 @@
#!/bin/bash
# Solves issue165
-. "$(dirname "$(readlink -e "$0")")/../db-functions"
. "$(dirname "$(readlink -e "$0")")/../config"
+. "$(dirname "$(readlink -e "$0")")/../db-functions"
# Traverse all repos
for _repo in ${PKGREPOS[@]}; do
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 6393472..c9aadba 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -1,8 +1,8 @@
#!/bin/bash
dirname="$(dirname "$(readlink -e "$0")")"
-. "${dirname}/../db-functions"
. "${dirname}/../config"
+. "${dirname}/../db-functions"
pushd "${WORKDIR}" >/dev/null
script_lock
diff --git a/cron-jobs/sourceballs2 b/cron-jobs/sourceballs2
index bbe227d..1432bdf 100755
--- a/cron-jobs/sourceballs2
+++ b/cron-jobs/sourceballs2
@@ -5,8 +5,8 @@
# Remove the old sourceballs
dirname="$(dirname "$(readlink -e "$0")")"
-. "${dirname}/../db-functions"
. "${dirname}/../config"
+. "${dirname}/../db-functions"
. "${MAKEPKGCONF}"
pushd "${WORKDIR}" >/dev/null
diff --git a/cron-jobs/update-web-db b/cron-jobs/update-web-db
index 825eea6..713e75e 100755
--- a/cron-jobs/update-web-db
+++ b/cron-jobs/update-web-db
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/../db-functions"
. "$(dirname "$(readlink -e "$0")")/../config"
+. "$(dirname "$(readlink -e "$0")")/../db-functions"
# setup paths
SPATH="/srv/http/archweb"
diff --git a/db-check-nonfree b/db-check-nonfree
index 661daa6..5cb7f6f 100755
--- a/db-check-nonfree
+++ b/db-check-nonfree
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -ge 1 ]; then
warning "Calling ${0##*/} with a specific repository is not supported"
diff --git a/db-list-unsigned-packages b/db-list-unsigned-packages
index 985d1c0..5105096 100755
--- a/db-list-unsigned-packages
+++ b/db-list-unsigned-packages
@@ -20,8 +20,8 @@ set -e
# unsigned packages available for architecture $1 and specified for
# architecture $2 (usually $1 or any, default is to list all).
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -lt 1 ]; then
msg "usage: ${0##*/} <architecture>"
diff --git a/db-move b/db-move
index 41ef4c1..eed48eb 100755
--- a/db-move
+++ b/db-move
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -lt 3 ]; then
msg "usage: ${0##*/} <repo-from> <repo-to> <pkgname|pkgbase> ..."
diff --git a/db-remove b/db-remove
index 2a12dba..46585ad 100755
--- a/db-remove
+++ b/db-remove
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -lt 3 ]; then
msg "usage: ${0##*/} <repo> <arch> <pkgname|pkgbase> ..."
diff --git a/db-repo-add b/db-repo-add
index 2b7894a..a6355a1 100755
--- a/db-repo-add
+++ b/db-repo-add
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -lt 3 ]; then
msg "usage: ${0##*/} <repo> <arch> <pkgfile> ..."
diff --git a/db-repo-remove b/db-repo-remove
index 09e34da..7077d62 100755
--- a/db-repo-remove
+++ b/db-repo-remove
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -lt 3 ]; then
msg "usage: ${0##*/} <repo> <arch> <pkgname> ..."
diff --git a/db-update b/db-update
index 86faec3..e3da232 100755
--- a/db-update
+++ b/db-update
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -ge 1 ]; then
warning "Calling ${0##*/} with a specific repository is no longer supported"
diff --git a/repo-restore-to-normal b/repo-restore-to-normal
index 3636920..3fe4816 100755
--- a/repo-restore-to-normal
+++ b/repo-restore-to-normal
@@ -1,8 +1,8 @@
#!/bin/bash
# Solves issue165
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
CLEANUP_DESTDIR=/home/parabolavnx/repo/pool/restore
PKGREPOS=(community)
diff --git a/testing2x b/testing2x
index 14a45de..b6828fc 100755
--- a/testing2x
+++ b/testing2x
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname "$(readlink -e "$0")")/db-functions"
. "$(dirname "$(readlink -e "$0")")/config"
+. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -lt 1 ]; then
msg "usage: ${0##*/} <pkgname|pkgbase> ..."
diff --git a/yf-update b/yf-update
index 3bce4aa..b6dff14 100755
--- a/yf-update
+++ b/yf-update
@@ -1,6 +1,6 @@
#!/bin/bash
-source "$(dirname "$(readlink -e "$0")")/local_config"
source "$(dirname "$(readlink -e "$0")")/config"
+source "$(dirname "$(readlink -e "$0")")/local_config"
source "$(dirname "$(readlink -e "$0")")/libremessages"
blacklist_mtime=$(printf "%.0f" $(find ${blacklist} -printf "%T@"))