diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/compress_doc.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/compress_doc.bbclass b/meta/classes/compress_doc.bbclass index 45bb8fff65..d6d11fad26 100644 --- a/meta/classes/compress_doc.bbclass +++ b/meta/classes/compress_doc.bbclass | |||
@@ -160,6 +160,7 @@ def _is_compress_doc(file, compress_format_list): | |||
160 | return False, '' | 160 | return False, '' |
161 | 161 | ||
162 | def compress_doc(topdir, compress_mode, compress_cmds): | 162 | def compress_doc(topdir, compress_mode, compress_cmds): |
163 | import subprocess | ||
163 | hardlink_dict = {} | 164 | hardlink_dict = {} |
164 | for root, dirs, files in os.walk(topdir): | 165 | for root, dirs, files in os.walk(topdir): |
165 | for f in files: | 166 | for f in files: |
@@ -187,6 +188,7 @@ def compress_doc(topdir, compress_mode, compress_cmds): | |||
187 | 188 | ||
188 | # Decompress doc files which format is not compress_mode | 189 | # Decompress doc files which format is not compress_mode |
189 | def decompress_doc(topdir, compress_mode, decompress_cmds): | 190 | def decompress_doc(topdir, compress_mode, decompress_cmds): |
191 | import subprocess | ||
190 | hardlink_dict = {} | 192 | hardlink_dict = {} |
191 | decompress = True | 193 | decompress = True |
192 | for root, dirs, files in os.walk(topdir): | 194 | for root, dirs, files in os.walk(topdir): |