From 613f8cfd6d04eb2dbdaee9b6b22b33c27a4db106 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 25 Jun 2013 09:10:39 +0200 Subject: Dropping global archive definitions shipped in /usr/share/live/build/archives (same as with packagelists, hidden archive 'magic' is gone now in favour of explicit config tree configuration). --- scripts/build/chroot_archives | 131 ------------------------------------------ 1 file changed, 131 deletions(-) (limited to 'scripts/build/chroot_archives') diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index 0277819f5..6947c9dd5 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -189,78 +189,6 @@ EOF fi fi - # Configure third-party archives - if [ -n "${LB_ARCHIVES}" ] - then - for REPOSITORY in ${LB_ARCHIVES} - do - # ubuntu workaround to allow using live-systems.org - case "${LB_MODE}" in - ubuntu) - if [ "${REPOSITORY}" = "live-systems.org" ] - then - _DISTRIBUTION="sid" - else - _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}" - fi - ;; - - *) - _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}" - ;; - esac - - # Prefer archives from the config tree - # over the global ones. - if ! ls "${_BASE}/archives/${REPOSITORY}"* > /dev/null 2>&1 - then - continue - fi - - # Adding apt sources (chroot) - for _FILE in "${_BASE}/archives/${REPOSITORY}" "${_BASE}/archives/${REPOSITORY}.chroot" - do - if [ -e "${_FILE}" ] - then - sed -e "s|@DISTRIBUTION@|${_DISTRIBUTION}|g" \ - -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \ - -e "s|@ARCHIVE_AREAS@|${LIVE_IMAGE_PARENT_ARCHIVE_AREAS}|g" \ - "${_FILE}" > "chroot/etc/apt/sources.list.d/${REPOSITORY}.list" - fi - done - - # Adding apt configuration (chroot) - for _FILE in "${_BASE}/archives/${REPOSITORY}.conf" "${_BASE}/archives/${REPOSITORY}.conf.chroot" - do - if [ -e "${_FILE}" ] - then - cp "${_FILE}" "chroot/etc/apt/conf.d/${REPOSITORY}.conf" - fi - done - - # Adding apt preferences (chroot) - for _FILE in "${_BASE}/archives/${REPOSITORY}.pref" "${_BASE}/archives/${REPOSITORY}.pref.chroot" - do - if [ -e "${_FILE}" ] - then - cp "${_FILE}" "chroot/etc/apt/preferences.d/${REPOSITORY}.pref" - fi - done - - # Adding apt keys (chroot) - if [ "${LB_APT_SECURE}" != false ] - then - for _FILE in "${_BASE}/archives/${REPOSITORY}.key" "${_BASE}/archives/${REPOSITORY}.key.chroot" - do - if [ -e "${_FILE}" ] - then - cat "${_FILE}" | Chroot chroot "apt-key add -" - fi - done - fi - done - fi - # Adding local apt sources (chroot) for FILE in config/archives/*.list config/archives/*.list.chroot do @@ -757,65 +685,6 @@ EOF rm -f chroot/etc/apt/conf.d/* rm -f chroot/etc/apt/preferences.d/* - # Configure third-party archives - if [ -n "${LB_ARCHIVES}" ] - then - for REPOSITORY in ${LB_ARCHIVES} - do - # Removing sources.list entries (chroot) - rm -f "chroot/etc/apt/sources.list.d/${REPOSITORY}.list" - - # Prefer archives from the config tree - # over the global ones. - if ! ls "${_BASE}/archives/${REPOSITORY}"* > /dev/null 2>&1 - then - continue - fi - - # Adding apt sources (binary) - for _FILE in "${_BASE}/archives/${REPOSITORY}" "${_BASE}/archives/${REPOSITORY}.binary" - do - if [ -e "${_FILE}" ] - then - sed -e "s|@DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \ - -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \ - -e "s|@ARCHIVE_AREAS@|${LIVE_IMAGE_PARENT_ARCHIVE_AREAS}|g" \ - "${_FILE}" > "chroot/etc/apt/sources.list.d/${REPOSITORY}.list" - fi - done - - # Adding apt configuration (binary) - for _FILE in "${_BASE}/archives/${REPOSITORY}.conf" "${_BASE}/archives/${REPOSITORY}.conf.binary" - do - if [ -e "${_FILE}" ] - then - cp "${_FILE}" "chroot/etc/apt/conf.d/${REPOSITORY}.conf" - fi - done - - # Adding apt preferences (binary) - for _FILE in "${_BASE}/archives/${REPOSITORY}.pref" "${_BASE}/archives/${REPOSITORY}.pref.binary" - do - if [ -e "${_FILE}" ] - then - cp "${_FILE}" "chroot/etc/apt/preferences.d/${REPOSITORY}.pref" - fi - done - - # Adding apt keys (binary) - if [ "${LB_APT_SECURE}" != false ] - then - for _FILE in "${_BASE}/archives/${REPOSITORY}.key" "${_BASE}/archives/${REPOSITORY}.key.binary" - do - if [ -e "${_FILE}" ] - then - cat "${_FILE}" | Chroot chroot "apt-key add -" - fi - done - fi - done - fi - # Adding local apt sources (binary) for FILE in config/archives/*.list config/archives/*.list.binary do -- cgit v1.2.3