diff options
Diffstat (limited to 'meta/classes/compress_doc.bbclass')
-rw-r--r-- | meta/classes/compress_doc.bbclass | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/compress_doc.bbclass b/meta/classes/compress_doc.bbclass index 6a4e635982..afa9cd614a 100644 --- a/meta/classes/compress_doc.bbclass +++ b/meta/classes/compress_doc.bbclass | |||
@@ -136,11 +136,14 @@ def _is_info(file): | |||
136 | return False | 136 | return False |
137 | 137 | ||
138 | def _is_man(file): | 138 | def _is_man(file): |
139 | import re | ||
140 | |||
139 | # It refers MANSECT-var in man(1.6g)'s man.config | 141 | # It refers MANSECT-var in man(1.6g)'s man.config |
140 | flags = '.1:.1p:.8:.2:.3:.3p:.4:.5:.6:.7:.9:.0p:.tcl:.n:.l:.p:.o'.split(':') | 142 | # ".1:.1p:.8:.2:.3:.3p:.4:.5:.6:.7:.9:.0p:.tcl:.n:.l:.p:.o" |
141 | for flag in flags: | 143 | # Not start with '.', and contain the above colon-seperate element |
142 | if os.path.basename(file).endswith(flag): | 144 | p = re.compile(r'[^\.]+\.([1-9lnop]|0p|tcl)') |
143 | return True | 145 | if p.search(file): |
146 | return True | ||
144 | 147 | ||
145 | return False | 148 | return False |
146 | 149 | ||