Skip to content

Commit

Permalink
Fix dashboard to include packages without Source field (i.e ignition-…
Browse files Browse the repository at this point in the history
…fortress) (#533)

* Fix dashboard to include packages with Source filed (i.e ignition-fortress)

* remove tabs

Co-authored-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
j-rivero and chapulina authored Oct 8, 2021
1 parent 16135ed commit 8003de9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terminal-dashboard/table.bash
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ do
if [[ $ARCH == "i386" && $VER == "focal" ]]; then
PKG_VERSION="disabled"
else
PKG_VERSION=$(wget -qO- http://packages.osrfoundation.org/gazebo/${DISTRO}-${PACKAGE_REPO}/dists/${VER}/main/binary-${ARCH}/Packages | grep -1 "Source: ${LIB}" | sed -n 's/^Version: \(.*\)/\1/p' | uniq)
# The Source field is not mandatory and it is probably not present when
# the binary package has the same name than the source package
PKG_VERSION=$(wget -qO- http://packages.osrfoundation.org/gazebo/${DISTRO}-${PACKAGE_REPO}/dists/${VER}/main/binary-${ARCH}/Packages | \
grep -1 -m 1 -e "Source: ${LIB}" -e "Package: ${LIB}" | \
sed -n 's/^Version: \(.*\)/\1/p' | uniq)
fi

PKG_VERSION=${PKG_VERSION%%~*}
Expand Down

0 comments on commit 8003de9

Please sign in to comment.