diff options
author | Bryan Drewery <bryan@shatow.net> | 2014-04-24 02:27:34 +0400 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2014-04-24 02:27:34 +0400 |
commit | 36cb6e773727e0a6f4f4f0b78bc1cbe688f3730d (patch) | |
tree | d84b1dcc5720af0fb0165a1b589e287c34192369 | |
parent | 8b477ef6e31e51d62bc23a556528540808b673f5 (diff) |
status: Use jail_runs() instead of looking for ref/ dir, fixes stale builds showing
-rwxr-xr-x | src/share/poudriere/status.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/share/poudriere/status.sh b/src/share/poudriere/status.sh index 388d726a..e7b0580a 100755 --- a/src/share/poudriere/status.sh +++ b/src/share/poudriere/status.sh @@ -136,9 +136,7 @@ else esac MASTERNAME=${mastermnt#${POUDRIERE_DATA}/logs/bulk/} # Skip non-running on ALL=0 - [ ${ALL} -eq 0 ] && \ - ! [ -d "${POUDRIERE_DATA}/build/${MASTERNAME}/ref" ] && \ - continue + [ ${ALL} -eq 0 ] && ! jail_runs ${MASTERNAME} && continue # Dereference latest into actual buildname BUILDNAME="$(BUILDNAME="${ORIG_BUILDNAME}" bget buildname 2>/dev/null || :)" # No matching build, skip. |