summaryrefslogtreecommitdiff
path: root/create-repo
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:06:59 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:06:59 -0400
commit32786b02317f9018ae6e1b7aa069763e9496a834 (patch)
treede25210cbb95470239e20105f7225d0ffd1d7beb /create-repo
parentcc3720b21451fbf73e0075b0955653fb37d1e106 (diff)
parent3abd3eaf4b3e6495d4603a8eb478e0f603ad51d9 (diff)
Merge branch 'master' into lukeshu/xbs
Conflicts: any-to-ours create-repo cron-jobs/ftpdir-cleanup cron-jobs/repo-sanity-check cron-jobs/sourceballs cron-jobs/sourceballs2 db-check-nonfree db-cleanup db-functions db-move db-remove db-sync db-update libremessages testing2x
Diffstat (limited to 'create-repo')
-rwxr-xr-xcreate-repo11
1 files changed, 4 insertions, 7 deletions
diff --git a/create-repo b/create-repo
index cfdbc23..3feb098 100755
--- a/create-repo
+++ b/create-repo
@@ -5,20 +5,17 @@
. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -eq 0 ]; then
- msg "Usage: ${0##*/} repo1 [repo2 ... repoX]"
+ msg "Usage: %s repo1 [repo2 ... repoX]" "${0##*/}"
exit 1
fi
msg "Creating repos..."
for _repo in "$@"; do
- msg2 "Creating [${_repo}]"
- mkdir -p "${FTP_BASE}/staging/${_repo}" || \
- error "Failed creating staging dir"
-
+ msg2 "Creating [%s]" "${_repo}"
for _arch in "${ARCHES[@]}"; do
mkdir -p "${FTP_BASE}/${_repo}/os/${_arch}" || \
- error "Failed creating ${_arch} dir"
+ error "Failed creating %s dir" "${_arch}"
done
done
-msg "Don't forget to add them to the PKGREPOS array on %s/config" "$(dirname "$(readlink -e "$0")")"
+msg "Don't forget to add them to the PKGREPOS array on %s" "$(dirname "$(readlink -e "$0")")/config"