diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/binary_package-lists | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/scripts/build/binary_package-lists b/scripts/build/binary_package-lists index dd7209919..a9c63b126 100755 --- a/scripts/build/binary_package-lists +++ b/scripts/build/binary_package-lists @@ -38,6 +38,18 @@ Check_lockfile .lock # Creating lock file Create_lockfile .lock +case "${LB_MODE}" in + progress-linux) + DISTS="installer/dists" + POOL="installer/pool" + ;; + + *) + DISTS="dists" + POOL="pool" + ;; +esac + if ls config/package-lists/*.list > /dev/null 2>&1 || \ ls config/package-lists/*.list.binary > /dev/null 2>&1 then @@ -127,21 +139,21 @@ then fi # Install directory - mkdir -p binary/pool/${SECTION}/"${LETTER}"/"${SOURCE}" + mkdir -p binary/${POOL}/${SECTION}/"${LETTER}"/"${SOURCE}" # Move files - mv "${FILE}" binary/pool/${SECTION}/"${LETTER}"/"${SOURCE}" + mv "${FILE}" binary/${POOL}/${SECTION}/"${LETTER}"/"${SOURCE}" done cd binary - for SECTION in pool/* + for SECTION in ${POOL}/* do SECTION="$(basename ${SECTION})" - mkdir -p dists/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE} - apt-ftparchive packages pool/${SECTION} > dists/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE}/Packages - gzip -9 -c dists/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE}/Packages > dists/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE}/Packages.gz + mkdir -p ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE} + apt-ftparchive packages ${POOL}/${SECTION} > ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE}/Packages + gzip -9 -c ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE}/Packages > ${DISTS}/${LB_PARENT_DISTRIBUTION}/${SECTION}/binary-${LIVE_IMAGE_ARCHITECTURE}/Packages.gz done cd "${OLDPWD}" |