From 9225c2fb791e42f92d2d14c03320413019f3b5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Thu, 7 Feb 2008 14:06:50 +0000 Subject: [PATCH] fix the return value problem of the build method so that it does not return the files with '.delta.pisi' suffix. --- pisi/operations/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 25961464..7025d0a1 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -694,6 +694,10 @@ class Builder: # find previous build in packages dir found = [] def locate_old_package(old_package_fn): + if not old_package_fn.endswith(ctx.const.package_suffix) or \ + old_package_fn.endswith(ctx.const.delta_package_suffix): + return + if pisi.util.is_package_name(os.path.basename(old_package_fn), package_name): try: old_pkg = pisi.package.Package(old_package_fn, 'r')