fix the return value problem of the build method so that it does not return the files with '.delta.pisi' suffix.

This commit is contained in:
Ozan Çağlayan
2008-02-07 14:06:50 +00:00
parent df12cf58f0
commit 9225c2fb79
+4
View File
@@ -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')