summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-software.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-03-11 22:03:44 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2009-03-11 22:03:44 +0100
commit207061727ee23e040745771f72670813791748c3 (patch)
tree84a44d4b878e395d2308cb8a3f2aeda6a23b1861 /src/core/libs/lib-software.sh
parent73557d9a9f04e454f166326822fb26740d1dbff1 (diff)
support specifying packages to install as group and by packagename
Diffstat (limited to 'src/core/libs/lib-software.sh')
-rw-r--r--src/core/libs/lib-software.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/libs/lib-software.sh b/src/core/libs/lib-software.sh
index 27bd6fd..b9ee8d7 100644
--- a/src/core/libs/lib-software.sh
+++ b/src/core/libs/lib-software.sh
@@ -26,7 +26,10 @@ run_mkinitcpio()
installpkg() {
notify "Package installation will begin now. You can watch the output in the progress window. Please be patient."
target_special_fs on
- run_background pacman_installpkg "$PACMAN_TARGET --noconfirm -S $TARGET_PACKAGES" $TMP_PACMAN_LOG #TODO: There may be something wrong here. See http://projects.archlinux.org/?p=installer.git;a=commitdiff;h=f504e9ecfb9ecf1952bd8dcce7efe941e74db946 ASKDEV (Simo)
+
+ ALL_PACKAGES=$TARGET_PACKAGES
+ [ -n "$TARGET_GROUPS" ] && ALL_PACKAGES="$ALL_PACKAGES "`list_packages group "$TARGET_GROUPS" | awk '{print $2}'`
+ run_background pacman_installpkg "$PACMAN_TARGET --noconfirm -S $ALL_PACKAGES" $TMP_PACMAN_LOG #TODO: There may be something wrong here. See http://projects.archlinux.org/?p=installer.git;a=commitdiff;h=f504e9ecfb9ecf1952bd8dcce7efe941e74db946 ASKDEV (Simo)
follow_progress " Installing... Please Wait " $TMP_PACMAN_LOG
wait_for pacman_installpkg