api: Remove the code related to build numbers

This commit is contained in:
Fatih Aşıcı
2010-10-06 10:54:02 +00:00
parent d50c655c72
commit 5617871ddd
+4 -10
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- 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 # 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
@@ -922,18 +922,12 @@ def clearCache(all=False):
version, release, build = pisi.util.split_version(full_version) version, release, build = pisi.util.split_version(full_version)
release = int(release) release = int(release)
if build:
build = int(build)
if name in latest: if name in latest:
lversion, lrelease, lbuild = latest[name] lversion, lrelease = latest[name]
if lbuild and build: if lrelease > release:
if lbuild > build:
continue
elif lrelease > release:
continue continue
latest[name] = full_version, release, build latest[name] = full_version, release
except: except:
pass pass