Skip to content

Commit

Permalink
Fix up build_lib.sh to work prpperly where parents are involved.
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorLowther committed Sep 28, 2012
1 parent a472504 commit 64e02df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_lib.sh
Expand Up @@ -860,7 +860,7 @@ barclamp_finder() {
while read b; do
[[ $b =~ $2 ]] || continue
printf '%s\n' "${BASH_REMATCH[${3:-1}]}"
done < <(find "$CROWBAR_DIR/releases/$1" -name 'barclamp-*') |sort -u
done < <(find "$CROWBAR_DIR/releases/$1" -name 'barclamp-*' -or -name 'parent') |sort -u
}

builds_for_barclamp_in_release() {
Expand Down Expand Up @@ -903,7 +903,7 @@ builds_in_release() {
local release="${1:-$(current_release)}" p build b
local -A builds
release_exists "$release" || return 1
for build in $(barclamp_finder "$release" "releases/.+/([^/]+)/barclamp-crowbar"); do
for build in $(barclamp_finder "$release" "releases/.+/([^/]+)/(barclamp-crowbar|parent)"); do
p=$(parent_build "$release/$build")
if [[ $p && ${builds[$p]} != echoed ]]; then
builds["$release/$build"]="$p"
Expand Down

0 comments on commit 64e02df

Please sign in to comment.