Index: tools/publish_pkg.py |
diff --git a/tools/publish_pkg.py b/tools/publish_pkg.py |
index 9e2fa0aed8440af19c4507bc391d9e24344851b6..9861a8d63297c2e21037c6f5115b8aeee596a115 100755 |
--- a/tools/publish_pkg.py |
+++ b/tools/publish_pkg.py |
@@ -160,7 +160,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
'''); |
replaceInFiles.append( |
- (r'(import|part)(\s+)(\'|")(\.\./)+pkg/', r'\1\2\3package:')) |
+ (r'(import|part)(\s+)(\'|")(\.\./)+pkg/([^/]+/)lib/', r'\1\2\3package:\5')) |
# Replace '../*/pkg' imports and parts. |
for root, dirs, files in os.walk(os.path.join(tmpDir, pkgName)): |