archives: fix mount local repo comments

Closes: #952873
This commit is contained in:
jnqnfe 2015-01-05 21:25:01 +00:00 committed by Luca Boccassi
parent 5c3679c882
commit 512dd58240
2 changed files with 5 additions and 4 deletions

View File

@ -58,13 +58,13 @@ Create_lockfile .lock
# Restoring cache
Restore_cache cache/packages.chroot
# Configure custom sources.list
# Mount local repository
if echo "${LB_PARENT_MIRROR_CHROOT}" | grep -q '^file:/'
then
Chroot_bind_path chroot "$(echo ${LB_PARENT_MIRROR_CHROOT} | sed -e 's|file:||')"
fi
# Configure custom sources.list
cat > chroot/etc/apt/${_PARENT_FILE} << EOF
deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS}
EOF

View File

@ -60,13 +60,14 @@ case "${1}" in
# Restoring cache
Restore_cache cache/packages.chroot
# Configure custom sources.list
# Mount local repository
if echo "${LB_PARENT_MIRROR_CHROOT}" | grep -q '^file:/'
then
Chroot_bind_path chroot "$(echo ${LB_PARENT_MIRROR_CHROOT} | sed -e 's|file:||')"
fi
# Configure custom sources.list
cat > chroot/etc/apt/${_PARENT_FILE} << EOF
deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS}
EOF