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:
@@ -694,6 +694,10 @@ class Builder:
|
|||||||
# find previous build in packages dir
|
# find previous build in packages dir
|
||||||
found = []
|
found = []
|
||||||
def locate_old_package(old_package_fn):
|
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):
|
if pisi.util.is_package_name(os.path.basename(old_package_fn), package_name):
|
||||||
try:
|
try:
|
||||||
old_pkg = pisi.package.Package(old_package_fn, 'r')
|
old_pkg = pisi.package.Package(old_package_fn, 'r')
|
||||||
|
|||||||
Reference in New Issue
Block a user