1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
|
5 |
> On Tue, 2012-07-17 at 12:59 +0300, Slava Bacherikov wrote: |
6 |
>> Hello all. |
7 |
>> |
8 |
>> My project task is creating new version of packages.gentoo.org site. |
9 |
>> You could find it on |
10 |
>> |
11 |
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=summary |
12 |
>> or on https://github.com/bacher09/gentoo-packages |
13 |
>> If you want to submit feature request you may do this by assign issue on |
14 |
>> github to me. |
15 |
>> |
16 |
> |
17 |
>> I created changelog parser (now it not ideal, i plan |
18 |
>> also little extend it) but some packages have bad data in changelog (for |
19 |
>> example bad date in cdrtools "*cdrtools-1.11.29 (12 Ayg 2002)" typo |
20 |
>> error in Aug). |
21 |
> |
22 |
> There are more problems than just a few typo's. In gentoolkit we've had |
23 |
> to ignore some areas that would otherwise cause problems in equery's |
24 |
> changelog. Check out what gentoolkit does for those. You may not need |
25 |
> it, but check. |
26 |
> |
27 |
> |
28 |
>> My changelog parser could fix some typos errors like |
29 |
>> these that I have shown. But some packages have little different format |
30 |
>> of changelog, that also trouble. |
31 |
>> I've also made some fixes in design and in code. |
32 |
>> |
33 |
> |
34 |
> |
35 |
>> Plans for the this week: |
36 |
>> Highlight changelog, save latest changelog section, add to package some |
37 |
>> data from newest ebuild in that package (like homepages, etc) |
38 |
> |
39 |
> Been there done that :) |
40 |
> |
41 |
> It is quite simple, have a look at porthole's code. It should be easy |
42 |
> to adapt to django use with very little changes needed. You will need |
43 |
> to change it to use django/web colors instead of gtk ones. Change |
44 |
> porthole's portage_lib calls to your PM backend code. Change the |
45 |
> gtk.Buffer to an html/xml string. But the highlighting/parsing code is |
46 |
> there and works. |
47 |
> |
48 |
> blog: http://dol-sen.blogspot.ca/2009/12/changelog.html |
49 |
> |
50 |
> Code: |
51 |
> |
52 |
http://porthole.git.sourceforge.net/git/gitweb.cgi?p=porthole/porthole;a=blob;f=porthole/views/changelog.py;h=97ed9016e83ca8d11888946346fa4d000e88bb9d;hb=HEAD |
53 |
> |
54 |
http://porthole.git.sourceforge.net/git/gitweb.cgi?p=porthole/porthole;a=blob;f=porthole/views/markup.py;h=4456f25058a6dd2db5a16b571e2f537c6ca553fb;hb=HEAD |
55 |
> |
56 |
> |
57 |
> Using that code, it should not take very long to convert/implement. |
58 |
> I stopped short of making the email addresses click-able. They should |
59 |
> use bugzilla rather than email people directly. |
60 |
> |
61 |
> |
62 |
> If you have more questions, you know where to find me :) |
63 |
Dol-sen thanks for helping, I was planning use my parser also like |
64 |
highlighter(maybe pygments lexer). My parser also ignore some areas but |
65 |
i have idea how don't do so. (I already check my parser on all portage |
66 |
tree and overlays) |
67 |
|
68 |
- -- |
69 |
Slava Bacherikov <slava@××××××××××××××.ua> |
70 |
-----BEGIN PGP SIGNATURE----- |
71 |
Version: GnuPG v2.0.19 (GNU/Linux) |
72 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
73 |
|
74 |
iQIcBAEBAgAGBQJQBtobAAoJEGjUsUT09Eyz1T0QAIjP6nRy7vut9wPW4Y+FGmh3 |
75 |
p8EqDsJAfkcU9Wog3dXRxEEsalpsyf672/MbAaK0/IM7JYTwyd2Q85DZpmJg2HxI |
76 |
ss/nDN8p6yICCVGWxSdJRC3hTqmvbPJVIQWJXuhXpmeJDBieFW0t8yszCfxhYzRD |
77 |
ymAdZHPHHCfON+lycRMqf8Wl7ItGd6Xxm+rd35pNWLhBd3yv43p/izxzCWp+D/xR |
78 |
MloMTnJbSW5lbPgqO+4+JylYJE8bGGgZIOPs7BHNZtiJQK+Dpl6MQxHc2w9WhTTh |
79 |
iGjvqeHe/xu/fF36BuxHTnb5j9i7N8EthPEPuUD9FlrT6i0y9/wLlZAfMCuOodHT |
80 |
gS+LUB6ii7pJusMDnYLG9CemWi4BFL3fafIRhvHEtrgyEuV9QAQMs18/BR8N5qAW |
81 |
Sm4XlIzDGjaiblMucliNXwWl5cqfAh5PuQeYrCv9chQUHqI8miC9z55HAKulvI5J |
82 |
5O6Qf0uaMYo+DtmYOznp9ncrfunMpWZ1Ch57me9jjGeyI2bLkcMtMex5rRglD7Yr |
83 |
DJnOVXBTd6EMadqXx7FSJ1czfIQ/jZl0FZjRyZeFYECtdRN8FK0qF02tf9eAvygJ |
84 |
4wsaNa4Jcp/mK8MkPXeQnTnwZuB7PnJWlZPcWp0LYwyzsc5HnjBlUB4MgoS95tvp |
85 |
4MkpMBHQ2j01LKdu9Glg |
86 |
=iGvF |
87 |
-----END PGP SIGNATURE----- |