summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rabbitmq_home.bzl12
1 files changed, 8 insertions, 4 deletions
diff --git a/rabbitmq_home.bzl b/rabbitmq_home.bzl
index a91e487c3d..6342d75f40 100644
--- a/rabbitmq_home.bzl
+++ b/rabbitmq_home.bzl
@@ -29,13 +29,17 @@ def _link_escript(ctx, escript):
return s
def _priv_file_dest_relative_path(plugin_label, f):
- rel_base = plugin_label.package
if plugin_label.workspace_root != "":
- rel_base = path_join(plugin_label.workspace_root, rel_base)
- if rel_base == "":
- return f.path
+ if plugin_label.package != "":
+ rel_base = path_join(plugin_label.workspace_root, plugin_label.package)
+ else:
+ rel_base = plugin_label.workspace_root
else:
+ rel_base = plugin_label.package
+ if rel_base != "":
return f.path.replace(rel_base + "/", "")
+ else:
+ return f.path
def _plugins_dir_links(ctx, plugin):
lib_info = plugin[ErlangLibInfo]