diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-11-24 10:28:21 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-11-24 10:28:21 -0300 |
commit | 86b3d7c0cdff042fd33e7705e6ef756415b86bd4 (patch) | |
tree | e937221a865fbf53580a28f4e0d2a49afc6f1756 | |
parent | 4822b418896d2c5d91b50f00476f39f0441f5b9a (diff) |
prevent duplicate repos from locking themselves
-rwxr-xr-x | db-update | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,7 +9,7 @@ if [ $# -ge 1 ]; then fi # Find repos with packages to release -staging_repos=($(find "${STAGING}" -mindepth 1 -type f -name "*${PKGEXT}" -printf '%h\n' | sort -u)) +staging_repos=($(find "${STAGING}" -mindepth 1 -maxdepth 3 -type f -name "*${PKGEXT}" -printf '%h\n' | sort -u)) if [ $? -ge 1 ]; then die "Could not read %s" "${STAGING}" fi @@ -20,6 +20,7 @@ for staging_repo in "${staging_repos[@]##*/}"; do repos+=("${staging_repo}") fi done +repos=($(echo "${repos[@]}" | tr " " "\n" | sort -u)) # TODO: this might lock too much (architectures) for repo in "${repos[@]}"; do |