1 |
commit: bd3de81c48d6cbc0bab375f188b4866ae91d3e37 |
2 |
Author: André Erdmann <dywi <AT> mailerd <DOT> de> |
3 |
AuthorDate: Mon Jun 25 18:06:56 2012 +0000 |
4 |
Commit: André Erdmann <dywi <AT> mailerd <DOT> de> |
5 |
CommitDate: Mon Jun 25 18:06:56 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=bd3de81c |
7 |
|
8 |
fix DescriptionNode creation in metadata |
9 |
|
10 |
modified: roverlay/metadata/__init__.py |
11 |
|
12 |
--- |
13 |
roverlay/metadata/__init__.py | 21 +++++++++------------ |
14 |
1 files changed, 9 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/roverlay/metadata/__init__.py b/roverlay/metadata/__init__.py |
17 |
index 8d94325..3385119 100644 |
18 |
--- a/roverlay/metadata/__init__.py |
19 |
+++ b/roverlay/metadata/__init__.py |
20 |
@@ -40,25 +40,22 @@ class MetadataJob ( object ): |
21 |
|
22 |
max_textline_width = roverlay.config.get ( 'METADATA.linewidth', 65 ) |
23 |
|
24 |
- have_desc = False |
25 |
+ # FIXME/TODO remove long/not long bool from DescriptionNode! |
26 |
|
27 |
- if 'Title' in desc_data: |
28 |
+ if 'Description' in desc_data: |
29 |
+ # !passing have_desc for DescriptionNode's is_long parameter redirects |
30 |
+ # !the second description info into <longdescription.../> |
31 |
mref.add ( nodes.DescriptionNode ( |
32 |
- desc_data ['Title'], |
33 |
- is_long=have_desc, |
34 |
+ desc_data ['Description'], |
35 |
+ is_long=True, |
36 |
linewidth=max_textline_width |
37 |
) ) |
38 |
- have_desc = True |
39 |
- |
40 |
- if 'Description' in desc_data: |
41 |
- # passing have_desc for DescriptionNode's is_long parameter redirects |
42 |
- # the second description info into <longdescription.../> |
43 |
+ elif 'Title' in desc_data: |
44 |
mref.add ( nodes.DescriptionNode ( |
45 |
- desc_data ['Description'], |
46 |
- is_long=have_desc, |
47 |
+ desc_data ['Title'], |
48 |
+ is_long=True, |
49 |
linewidth=max_textline_width |
50 |
) ) |
51 |
- have_desc = True |
52 |
|
53 |
# these USE flags are described in profiles/use.desc, |
54 |
# no need to include them here |