Message56958
| Author |
sapetnioc |
| Recipients |
christian.heimes, draghuram, sapetnioc |
| Date |
2007年10月30日.10:49:32 |
| SpamBayes Score |
0.05512831 |
| Marked as misclassified |
No |
| Message-id |
<1193741374.29.0.884447620757.issue1322@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I joined a modified version of platform.py. Here is a summary of the
modification:
- replaced '/etc' by global variable _etc_dir
- removed supported_dists parameter of dist()
- each element of dist() result is searched in the following places
(the first value found is kept):
1) First line of /etc/<distribname>-release
2) Contents of /etc/lsb-release
3) Extract <distribname> from /etc/<distribname>-release
I tested it on Mandriva 2007.1, Fedora 4 and on a faked /etc directory
containing the Ubuntu files send by tiran. Results are:
Mandriva 2007.1: ('MandrivaLinux', '2007.1', 'Official')
Fedora 4: ('FedoraCore', '4', 'Stentz')
Faked Ubuntu: ('Ubuntu', '7.10', 'gutsy') |
| Files |
| File name |
Uploaded |
|
platform.py
|
sapetnioc,
2007年10月30日.10:49:33
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年10月30日 10:49:34 | sapetnioc | set | spambayes_score: 0.0551283 -> 0.05512831 recipients:
+ sapetnioc, draghuram, christian.heimes |
| 2007年10月30日 10:49:34 | sapetnioc | set | spambayes_score: 0.0551283 -> 0.0551283 messageid: <1193741374.29.0.884447620757.issue1322@psf.upfronthosting.co.za> |
| 2007年10月30日 10:49:34 | sapetnioc | link | issue1322 messages |
| 2007年10月30日 10:49:33 | sapetnioc | create |
|