summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 10:33:11 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 10:33:11 -0700
commit953d9d8ea616a9505c9e13813241dee455a580dc (patch)
tree099082a1324c235c5c429fe63cd1ee8b83456d32
parent954b699c84cd0b6211bf4ffb83bcd8affd7d8875 (diff)
Collapse duplicate loops for staging removal
Add 'any' to the items looped over in the ${ARCHES[@]} loop Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xdb-update12
1 files changed, 1 insertions, 11 deletions
diff --git a/db-update b/db-update
index c68cf84..17d3b71 100755
--- a/db-update
+++ b/db-update
@@ -75,17 +75,7 @@ trap ctrl_c 2
trap cleanup 0
# Remove any package from $stagedir that is already in the FTP repository
-for f in $stagedir/*-any$PKGEXT; do
- bf=$(basename $f)
- ftppath_any="$FTP_BASE/$reponame/os/any"
- if [[ -f $ftppath_any/$bf ]]; then
- echo " WARNING: Package file $bf already exists in FTP repo"
- echo " Removing from $stagedir"
- /bin/rm $f
- fi
-done
-
-for current_arch in ${ARCHES[@]}; do
+for current_arch in ${ARCHES[@]} any; do
ftppath="$FTP_BASE/$reponame/os/$current_arch"
for f in $stagedir/*-$current_arch$PKGEXT; do
bf=$(basename $f)