summaryrefslogtreecommitdiff
path: root/helpers/lh_source_download
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:47 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:28 +0100
commit677415f6d7efc1e5b888570d70af311d2900c69c (patch)
tree32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_source_download
parent811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff)
downloadlive-build-677415f6d7efc1e5b888570d70af311d2900c69c.zip
live-build-677415f6d7efc1e5b888570d70af311d2900c69c.tar.gz
Adding live-helper 1.0~a2-1.
Diffstat (limited to 'helpers/lh_source_download')
-rwxr-xr-xhelpers/lh_source_download28
1 files changed, 13 insertions, 15 deletions
diff --git a/helpers/lh_source_download b/helpers/lh_source_download
index 0684d87..2081220 100755
--- a/helpers/lh_source_download
+++ b/helpers/lh_source_download
@@ -18,30 +18,31 @@ Set_defaults
if [ "${LIVE_SOURCE}" = "enabled" ]
then
# Requiring stage file
- Require_stagefile "${LIVE_ROOT}"/.stage/bootstrap
+ Require_stagefile .stage/bootstrap
# Checking lock file
- Check_lockfile "${LIVE_ROOT}"/.lock
+ Check_lockfile .lock
# Creating lock file
- Create_lockfile "${LIVE_ROOT}"/.lock
+ Create_lockfile .lock
# Checking stage file
- Check_stagefile "${LIVE_ROOT}"/.stage/source_download
+ Check_stagefile .stage/source_download
# Remove old sources
- if [ "${LIVE_ROOT}"/source ]
+ if [ -d source/debian ]
then
- rm -rf "${LIVE_ROOT}"/source
+ rm -rf source/debian
fi
# Download sources
- Chroot "dpkg --get-selections" | awk '{ print $1 }' > "${LIVE_CHROOT}"/root/dpkg-selection.txt
+ Chroot "dpkg --get-selections" | awk '{ print $1 }' > chroot/root/dpkg-selection.txt
+ #echo "live-helper" >> chroot/root/dpkg-selection.txt
Chroot "xargs --arg-file=/root/dpkg-selection.txt apt-get source --download-only"
- rm -f "${LIVE_CHROOT}"/root/dpkg-selection.txt
+ rm -f chroot/root/dpkg-selection.txt
# Sort sources
- for DSC in "${LIVE_CHROOT}"/*.dsc
+ for DSC in chroot/*.dsc
do
SOURCE="`awk '/Source:/ { print $2; }' ${DSC}`"
@@ -53,15 +54,12 @@ then
fi
# Install directory
- install -d -m 0755 "${LIVE_ROOT}"/source/"${LETTER}"/"${SOURCE}"
+ install -d -m 0755 source/debian/"${LETTER}"/"${SOURCE}"
# Move files
- mv "${LIVE_CHROOT}"/"${SOURCE}"_* "${LIVE_ROOT}"/source/"${LETTER}"/"${SOURCE}"
+ mv chroot/"${SOURCE}"_* source/debian/"${LETTER}"/"${SOURCE}"
done
- # Copy system configuration
- cp -a "${LIVE_ROOT}"/config "${LIVE_ROOT}"/source
-
# Creating stage file
- Create_stagefile "${LIVE_ROOT}"/.stage/source_download
+ Create_stagefile .stage/source_download
fi