From a86c19b1d430d7d006a1b5d1dd394e11b59d64ba Mon Sep 17 00:00:00 2001 From: Martin Pecka Date: Mon, 2 Jan 2023 19:44:47 +0100 Subject: [PATCH] Deprecate `-c` and `-m` command line options and use `ROSDEP_CACHE_PATH` instead. Signed-off-by: Martin Pecka --- src/rosdep2/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rosdep2/main.py b/src/rosdep2/main.py index 8509a0214..a20f54afb 100644 --- a/src/rosdep2/main.py +++ b/src/rosdep2/main.py @@ -63,7 +63,7 @@ from .installers import normalize_uninstalled_to_list from .installers import RosdepInstaller from .lookup import RosdepLookup, ResolutionError, prune_catkin_packages -from .meta import MetaDatabase, get_meta_cache_dir +from .meta import MetaDatabase from .rospkg_loader import DEFAULT_VIEW_KEY from .sources_list import update_sources_list, get_sources_cache_dir,\ download_default_sources_list, SourcesListLoader, CACHE_INDEX,\ @@ -311,9 +311,6 @@ def setup_environment_variables(ros_distro, meta_cache_dir=None): def _rosdep_main(args): # sources cache dir is our local database. - default_sources_cache = get_sources_cache_dir() - default_meta_cache = get_meta_cache_dir() - parser = OptionParser(usage=_usage, prog='rosdep') parser.add_option('--os', dest='os_override', default=None, metavar='OS_NAME:OS_VERSION', help='Override OS name and version (colon-separated), e.g. ubuntu:lucid')