diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-08-19 07:37:11 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-08-19 08:57:25 +0200 |
commit | 0dc87d1170c84dc8c1d2d0c97898978da6fe4467 (patch) | |
tree | be802a697a1435149ac62bf0ffb79dc9953b68e6 | |
parent | 89cf1cf6099a19e232609602fae318de34c7fac0 (diff) | |
download | vyos-live-build-0dc87d1170c84dc8c1d2d0c97898978da6fe4467.tar.gz vyos-live-build-0dc87d1170c84dc8c1d2d0c97898978da6fe4467.zip |
Updating binary repository prefix for progress-linux.
-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}" |