Skip to content

Commit

Permalink
use pv command to keep inform while rosdep install, Closes No output …
Browse files Browse the repository at this point in the history
…has been received in the last 10m0s error
  • Loading branch information
k-okada committed Apr 11, 2019
1 parent 9a6731c commit b8fe011
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Empty file removed CATKIN_IGNORE
Empty file.
4 changes: 2 additions & 2 deletions rosdep-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ EXIT_STATUS=1
COUNT=0
while [ $EXIT_STATUS == 1 -a $COUNT -lt 3 ] ; do # try 3 times with "Continue installing despite errors." option
COUNT=$((COUNT + 1))
rosdep install -q -y --rosdistro $ROS_DISTRO $ROSDEP_ADDITIONAL_OPTIONS --from-paths ${ROS_PACKAGE_PATH_REVERSED} . | grep -v -e '\(Preparing to unpack\|Unpacking\|Selecting previously unselected package\)'
rosdep install -q -y --rosdistro $ROS_DISTRO $ROSDEP_ADDITIONAL_OPTIONS --from-paths ${ROS_PACKAGE_PATH_REVERSED} . | pv -i 60 | grep -v -e '\(Preparing to unpack\|Unpacking\|Selecting previously unselected package\)'
EXIT_STATUS=${PIPESTATUS[0]}
[ $EXIT_STATUS == 0 ] || sleep 30
done
if [ $EXIT_STATUS != 0 ]; then
rosdep install -q -y --rosdistro $ROS_DISTRO $ROSDEP_ADDITIONAL_OPTIONS --from-paths ${ROS_PACKAGE_PATH_REVERSED} . | grep -v -e '\(Preparing to unpack\|Unpacking\|Selecting previously unselected package\)'
rosdep install -q -y --rosdistro $ROS_DISTRO $ROSDEP_ADDITIONAL_OPTIONS --from-paths ${ROS_PACKAGE_PATH_REVERSED} . | pv -i 60 | grep -v -e '\(Preparing to unpack\|Unpacking\|Selecting previously unselected package\)'
EXIT_STATUS=${PIPESTATUS[0]}
fi

Expand Down
2 changes: 1 addition & 1 deletion travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
lsb_release -a
sudo apt-get update -q || echo Ignore error of apt-get update
sudo apt-get install -y --force-yes -q -qq dpkg # https://github.com/travis-ci/travis-ci/issues/9361#issuecomment-408431262 dpkg-deb: error: archive has premature member 'control.tar.xz' before 'control.tar.gz' #9361
sudo apt-get install -y --force-yes -q -qq python-rosdep python-wstool python-catkin-tools ros-$ROS_DISTRO-rosbash ros-$ROS_DISTRO-rospack ccache
sudo apt-get install -y --force-yes -q -qq python-rosdep python-wstool python-catkin-tools ros-$ROS_DISTRO-rosbash ros-$ROS_DISTRO-rospack ccache pv
# setup catkin-tools option
if [ ! "$CATKIN_TOOLS_BUILD_OPTIONS" ]; then
if [[ "$(pip show catkin-tools | grep '^Version:' | awk '{print $2}')" =~ 0.3.[0-9]+ ]]; then
Expand Down

0 comments on commit b8fe011

Please sign in to comment.