summaryrefslogtreecommitdiff
blob: 06933d69a9fa100defd2e655e8958fdcec8de392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: catkin_pkg-0.3.1/src/catkin_pkg/packages.py
===================================================================
--- catkin_pkg-0.3.1.orig/src/catkin_pkg/packages.py
+++ catkin_pkg-0.3.1/src/catkin_pkg/packages.py
@@ -59,7 +59,7 @@ def find_package_paths(basepath, exclude
             del dirnames[:]
             continue
         elif PACKAGE_MANIFEST_FILENAME in filenames:
-            paths.append(os.path.relpath(dirpath, basepath))
+            paths.append(os.path.relpath(dirpath.replace('ros_packages/', ''), basepath))
             del dirnames[:]
             continue
         for dirname in dirnames: