1 |
Author: zmedico |
2 |
Date: 2010-02-18 08:48:13 +0000 (Thu, 18 Feb 2010) |
3 |
New Revision: 15368 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/dispatch-conf |
7 |
Log: |
8 |
Fix broken diffutils vercmp code. |
9 |
|
10 |
|
11 |
Modified: main/trunk/bin/dispatch-conf |
12 |
=================================================================== |
13 |
--- main/trunk/bin/dispatch-conf 2010-02-18 08:36:19 UTC (rev 15367) |
14 |
+++ main/trunk/bin/dispatch-conf 2010-02-18 08:48:13 UTC (rev 15368) |
15 |
@@ -125,9 +125,8 @@ |
16 |
diffutils = vardb.match('sys-apps/diffutils') |
17 |
if diffutils: |
18 |
diffutils = diffutils[0] |
19 |
- diffutils_split = portage.catpkgsplit(diffutils)[1:] |
20 |
- if portage.vercmp(diffutils_split, |
21 |
- portage.pkgsplit('diffutils-2.9')) >= 0: |
22 |
+ diffutils_ver = '-'.join(portage.catpkgsplit(diffutils)[2:]) |
23 |
+ if portage.vercmp(diffutils_ver, '2.9') >= 0: |
24 |
diffutils_2_9 = True |
25 |
|
26 |
# config file freezing support |