From b5faccc9a51ddc09e8e27a1377425022585c577e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Sat, 15 Apr 2006 14:55:56 +0000 Subject: [PATCH] =?UTF-8?q?Build-no=20hesaplamak=20i=C3=A7in=20oldu=C4=9Fu?= =?UTF-8?q?n=20dizin=20ve=20alt=20dizinlerinde=20recursive=20gezme,=20bu?= =?UTF-8?q?=20i=C5=9F=20build-farm'da=20olaca=C4=9F=C4=B1na=20g=C3=B6re=20?= =?UTF-8?q?paketler=20/var/cache/pisi/packages=20alt=C4=B1nda=20olacak=20z?= =?UTF-8?q?aten.=20%10000=20h=C4=B1z=20kazanc=C4=B1=20(15=20dakika=20yerin?= =?UTF-8?q?e=201=20saniye)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index 6ab2a6d9..1f72fb81 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -584,14 +584,10 @@ class Builder: def calc_build_no(self, package_name): """Calculate build number""" - # find previous build in output dir and packages dir + # find previous build in packages dir found = [] def locate_package_names(files): for fn in files: - try: - fn = fn.decode('utf-8') # FIXME: why is this necessary? - except: # fix 1088 - continue if util.is_package_name(fn, package_name): old_package_fn = util.join_path(root, fn) try: @@ -610,9 +606,6 @@ class Builder: outdir = ctx.config.options.output_dir or '.' - for root, dirs, files in os.walk(outdir): - dirs = [] # don't recurse - locate_package_names(files) for root, dirs, files in os.walk(ctx.config.packages_dir()): locate_package_names(files)