summaryrefslogtreecommitdiff
path: root/helpers/lh_installpackagelists
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:40 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:40 +0200
commit6f5e2da03e5fd1af2200d2f55ca84647bc8d3626 (patch)
treee2a861c1995eea707b2ac1c72930351191714493 /helpers/lh_installpackagelists
parent9a9491318d4a0469e4c97b28879ab34391c39095 (diff)
downloadlive-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.zip
live-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.tar.gz
Adding live-package 0.99.22-1.
Diffstat (limited to 'helpers/lh_installpackagelists')
-rwxr-xr-xhelpers/lh_installpackagelists29
1 files changed, 29 insertions, 0 deletions
diff --git a/helpers/lh_installpackagelists b/helpers/lh_installpackagelists
new file mode 100755
index 0000000..71ba2fa
--- /dev/null
+++ b/helpers/lh_installpackagelists
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# lh_installpackagelists
+
+# Install packages list
+if [ -n "${LIVE_PACKAGE_LIST}" ]
+then
+ if [ "${LIVE_PACKAGE_LIST}" = "everything" ]
+ then
+ #for FILE in "${LIVE_CHROOT}"/var/lib/apt/lists/*_Packages
+ #do
+ # awk '/Package: / { print $2 }' "${FILE}" | grep -v ".*-dbg$" >> "${LIVE_CHROOT}"/root/everything
+ #done
+
+ #lh_chroot "xargs --arg-file=/root/everything aptitude install --assume-yes"
+ #rm -f "${LIVE_CHROOT}"/root/everything
+
+ # FIXME
+
+ for SECTION in admin base comm devel doc editors electronics embedded games gnome graphics hamradio interpreters kde libs libdevel mail math misc net news oldlibs otherosfs perl python science shells sound tex text utils web x11
+ do
+ lh_chroot "aptitude install --assume-yes ~s${SECTION}"
+ done
+ else
+ grep -v "^#" "${LIVE_PACKAGE_LIST}" > "${LIVE_CHROOT}"/root/"`basename ${LIVE_PACKAGE_LIST}`"
+ lh_chroot "xargs --arg-file=/root/`basename ${LIVE_PACKAGE_LIST}` aptitude install --assume-yes"
+ rm -f "${LIVE_CHROOT}"/root/"`basename ${LIVE_PACKAGE_LIST}`"
+ fi
+fi