Fix fix-apk dropping last package

This commit is contained in:
Disassembler 2018-09-13 13:59:56 +02:00
parent cbd65805f8
commit 41b598936f
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,13 @@ lxc-build ${SOURCE_DIR}/ckan-datapusher
lxc-build ${SOURCE_DIR}/crisiscleanup
lxc-build ${SOURCE_DIR}/cts
lxc-build ${SOURCE_DIR}/frontlinesms
lxc-build ${SOURCE_DIR}/gnuhealth
lxc-build ${SOURCE_DIR}/kanboard
lxc-build ${SOURCE_DIR}/mariadb
lxc-build ${SOURCE_DIR}/mifosx
lxc-build ${SOURCE_DIR}/motech
lxc-build ${SOURCE_DIR}/opendatakit
lxc-build ${SOURCE_DIR}/opendatakit-build
lxc-build ${SOURCE_DIR}/postgres
lxc-build ${SOURCE_DIR}/redis
lxc-build ${SOURCE_DIR}/solr

View File

@ -16,6 +16,9 @@ def fix_installed(layers):
installed.append(buffer)
buffer = []
buffer.append(line)
buffer = ''.join(buffer)
if buffer not in installed:
installed.append(buffer)
except:
continue
os.makedirs(os.path.join(layers[-1], 'lib/apk/db'), 0o755, True)