Skip to content

Commit

Permalink
honor CATKIN_IGNORE marker file when crawling for packages (fix #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 5, 2013
1 parent 82d83d1 commit 6f2d93b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/rospack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ static const char* ROSSTACK_MANIFEST_NAME = "stack.xml";
static const char* ROSPACK_CACHE_NAME = "rospack_cache";
static const char* ROSSTACK_CACHE_NAME = "rosstack_cache";
static const char* ROSPACK_NOSUBDIRS = "rospack_nosubdirs";
static const char* CATKIN_IGNORE = "CATKIN_IGNORE";
static const char* DOTROS_NAME = ".ros";
static const char* MSG_GEN_GENERATED_DIR = "msg_gen";
static const char* MSG_GEN_GENERATED_FILE = "generated";
Expand Down Expand Up @@ -1453,6 +1454,17 @@ Rosstackage::crawlDetail(const std::string& path,
return;
}

fs::path catkin_ignore = fs::path(path) / CATKIN_IGNORE;
try
{
if(fs::is_regular_file(catkin_ignore))
return;
}
catch(fs::filesystem_error& e)
{
logWarn(std::string("error while looking for ") + catkin_ignore.string() + ": " + e.what());
}

if(isStackage(path))
{
addStackage(path);
Expand Down

0 comments on commit 6f2d93b

Please sign in to comment.