From 49c3e1a24f1ada127e4aca23921405bfca4ddc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Thu, 11 Nov 2010 14:19:29 +0000 Subject: [PATCH] history: Fix split error --- pisi/operations/history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/operations/history.py b/pisi/operations/history.py index 39780fcd..fcbc5ff9 100644 --- a/pisi/operations/history.py +++ b/pisi/operations/history.py @@ -1,6 +1,6 @@ # -*- 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 # 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): return False - ver, rel = str(pkginfo).split("-") + ver, rel = str(pkginfo).split("-")[:2] return (ver, rel) == installdb.get_version(name)[:-1] def __listactions(actions):