summaryrefslogtreecommitdiff
blob: 6c9855d627c9d2af001f19461c17e8ab0cc7b116 (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: