From 5617871ddd3c1eea67e8e6afa42826ad9bda9b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 6 Oct 2010 10:54:02 +0000 Subject: [PATCH] api: Remove the code related to build numbers --- pisi/api.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pisi/api.py b/pisi/api.py index 02fa3950..745a940b 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2005 - 2009, TUBITAK/UEKAE +# Copyright (C) 2005-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 @@ -922,18 +922,12 @@ def clearCache(all=False): version, release, build = pisi.util.split_version(full_version) release = int(release) - if build: - build = int(build) - if name in latest: - lversion, lrelease, lbuild = latest[name] - if lbuild and build: - if lbuild > build: - continue - elif lrelease > release: + lversion, lrelease = latest[name] + if lrelease > release: continue - latest[name] = full_version, release, build + latest[name] = full_version, release except: pass