-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Build] Update rules_pkg to 0.8. Also add tree inclusion patch
- Loading branch information
1 parent
dd080a1
commit 104b7b9
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/pkg/private/tar/build_tar.py b/pkg/private/tar/build_tar.py | ||
index ab16610d..b6b75bd7 100644 | ||
--- a/pkg/private/tar/build_tar.py | ||
+++ b/pkg/private/tar/build_tar.py | ||
@@ -309,7 +309,10 @@ def add_manifest_entry(self, entry_list, file_attributes): | ||
elif entry.entry_type == manifest.ENTRY_IS_EMPTY_FILE: | ||
self.add_empty_file(entry.dest, **attrs) | ||
else: | ||
- self.add_file(entry.src, entry.dest, **attrs) | ||
+ if os.path.isdir(entry.src): | ||
+ self.add_tree(entry.src, entry.dest, **attrs) | ||
+ else: | ||
+ self.add_file(entry.src, entry.dest, **attrs) | ||
|
||
|
||
def main(): |