history: Fix split error

This commit is contained in:
Fatih Aşıcı
2010-11-11 14:19:29 +00:00
parent e47b999e6f
commit 49c3e1a24f
+2 -2
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright (C) 2008, TUBITAK/UEKAE # Copyright (C) 2008-2010, TUBITAK/UEKAE
# #
# This program is free software; you can redistribute it and/or modify it under # This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free # the terms of the GNU General Public License as published by the Free
@@ -28,7 +28,7 @@ def __pkg_already_installed(name, pkginfo):
if not installdb.has_package(name): if not installdb.has_package(name):
return False return False
ver, rel = str(pkginfo).split("-") ver, rel = str(pkginfo).split("-")[:2]
return (ver, rel) == installdb.get_version(name)[:-1] return (ver, rel) == installdb.get_version(name)[:-1]
def __listactions(actions): def __listactions(actions):