summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-18 08:48:13 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-18 08:48:13 +0000
commitb354d09d631fed43ff3f8824285d1f66f2f9d05c (patch)
treedd736f4e8ff04ada9b3ed815ef20ead9316d3f5d
parent4f4b43c6cd8656152e5fbe6c61a3f37436d10d84 (diff)
downloadportage-b354d09d631fed43ff3f8824285d1f66f2f9d05c.tar.gz
portage-b354d09d631fed43ff3f8824285d1f66f2f9d05c.tar.bz2
portage-b354d09d631fed43ff3f8824285d1f66f2f9d05c.zip
Fix broken diffutils vercmp code.
svn path=/main/trunk/; revision=15368
-rwxr-xr-xbin/dispatch-conf5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf
index 776ce5dd8..2a6462ac4 100755
--- a/bin/dispatch-conf
+++ b/bin/dispatch-conf
@@ -125,9 +125,8 @@ class dispatch:
diffutils = vardb.match('sys-apps/diffutils')
if diffutils:
diffutils = diffutils[0]
- diffutils_split = portage.catpkgsplit(diffutils)[1:]
- if portage.vercmp(diffutils_split,
- portage.pkgsplit('diffutils-2.9')) >= 0:
+ diffutils_ver = '-'.join(portage.catpkgsplit(diffutils)[2:])
+ if portage.vercmp(diffutils_ver, '2.9') >= 0:
diffutils_2_9 = True
# config file freezing support