summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:46:14 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:46:14 -0300
commitf1a771204c474e5d5498d8e4a1951eb56f948f4f (patch)
tree1e122b784869cd838d257e1822730fac1c7a64af
parentebcc21d96f879e4e20b2c15d7ab1a082e400464e (diff)
parabola-mirror-repos: Variable name to lowercase
-rwxr-xr-xparabola-mirror-repos14
1 files changed, 7 insertions, 7 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos
index 04e48c7..d2245c0 100755
--- a/parabola-mirror-repos
+++ b/parabola-mirror-repos
@@ -75,7 +75,7 @@ fi
REMOTE_POOL_FILES="/tmp/${project}-remote-files"
-LOCAL_POOL_FILES="/tmp/${project}-local-files"
+local_pool_files="/tmp/${project}-local-files"
POOL_FILES_TO_DELETE="/tmp/${project}-to-delete-files"
# Lock with flock (provided by util-linux), save to log file and send email on exit
@@ -280,7 +280,7 @@ cd "${LOCAL}".tmp
if [[ ${db_and_symlinks_update} == 1 ]] ; then
# Delete temporary files that may be left over by a previous invocation of parabola-mirror-repos
- rm -f "$REMOTE_POOL_FILES" "$LOCAL_POOL_FILES" "$POOL_FILES_TO_DELETE" || true
+ rm -f "$REMOTE_POOL_FILES" "$local_pool_files" "$POOL_FILES_TO_DELETE" || true
remote_repo_dirs="${repos_array[@]/#/${SERVER}/}"
remote_repo_dirs="${remote_repo_dirs[@]/%//os}"
@@ -295,17 +295,17 @@ if [[ ${db_and_symlinks_update} == 1 ]] ; then
if [[ ${first_run} == 0 ]] ; then
echo "=> Getting local pool package file list"
# Build a list of local packages
- find pool -mindepth 2 >> "$LOCAL_POOL_FILES"
+ find pool -mindepth 2 >> "$local_pool_files"
echo "=> Building list of local pool package files to delete"
# Avoid duplicates (comes from -any packages present in both i686/ and x86_64/)
sort -u -o "$REMOTE_POOL_FILES" "$REMOTE_POOL_FILES"
- sort -o "$LOCAL_POOL_FILES" "$LOCAL_POOL_FILES"
+ sort -o "$local_pool_files" "$local_pool_files"
- # Keep lines that only appears in LOCAL_POOL_FILES
- comm -13 "$REMOTE_POOL_FILES" "$LOCAL_POOL_FILES" > "$POOL_FILES_TO_DELETE"
+ # Keep lines that only appears in local_pool_files
+ comm -13 "$REMOTE_POOL_FILES" "$local_pool_files" > "$POOL_FILES_TO_DELETE"
NUMBER_TO_DELETE="$(wc -l $POOL_FILES_TO_DELETE | cut -d ' ' -f 1)"
@@ -409,7 +409,7 @@ if [[ ${leave_tmp} == 0 ]] ; then
fi
fi
-rm -f "$REMOTE_POOL_FILES" "$LOCAL_POOL_FILES" "$POOL_FILES_TO_DELETE" "$LOCAL".old || true
+rm -f "$REMOTE_POOL_FILES" "$local_pool_files" "$POOL_FILES_TO_DELETE" "$LOCAL".old || true
echo "=> Disk space report"
df -h "${base_dir}"