diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 19:33:11 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 19:33:11 +0200 |
commit | 953d9d8ea616a9505c9e13813241dee455a580dc (patch) | |
tree | 099082a1324c235c5c429fe63cd1ee8b83456d32 /db-update | |
parent | 954b699c84cd0b6211bf4ffb83bcd8affd7d8875 (diff) | |
download | dbscripts-953d9d8ea616a9505c9e13813241dee455a580dc.tar.gz dbscripts-953d9d8ea616a9505c9e13813241dee455a580dc.tar.xz |
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>
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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) |