Updating binary repository prefix for progress-linux.

This commit is contained in:
Daniel Baumann 2013-08-19 07:37:11 +02:00
parent 89cf1cf609
commit 0dc87d1170
1 changed files with 18 additions and 6 deletions

View File

@ -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}"