Skip to content

Commit

Permalink
Revert "Allow the use of ROS_ETC_DIR to control the placement of the (#…
Browse files Browse the repository at this point in the history
…551)"

This reverts commit dadfd0a.
  • Loading branch information
dirk-thomas committed Feb 8, 2018
1 parent de2152c commit 21beaa0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rosdep2/sources_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def get_sources_list_dirs(source_list_dir):
def get_sources_list_dir():
# base of where we read config files from
# TODO: windows
etc_ros = rospkg.get_etc_ros_dir()
if 0:
# we can't use etc/ros because environment config does not carry over under sudo
etc_ros = rospkg.get_etc_ros_dir()
else:
etc_ros = '/etc/ros'
# compute default system wide sources directory
sys_sources_list_dir = os.path.join(etc_ros, 'rosdep', SOURCES_LIST_DIR)
sources_list_dirs = get_sources_list_dirs(sys_sources_list_dir)
Expand Down

0 comments on commit 21beaa0

Please sign in to comment.