gentoo/dev-python/catkin_pkg/files/ros_packages.patch
Alexis Ballier acd83790f4
dev-python/catkin_pkg: bump to 0.4.2 and fix tests
Package-Manager: Portage-2.3.36, Repoman-2.3.9
2018-05-15 08:34:50 +02:00

14 lines
622 B
Diff

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: