summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-18 16:33:10 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-18 16:33:10 +0100
commita988d7e0ff9fd1b20a3d51695500f91e5dcee594 (patch)
tree90e9cb9825f788da976873db277b029945243ce5 /src
parent83df0500533e6e5b7a93b4d37df34a0952e2795b (diff)
todo updates
Diffstat (limited to 'src')
-rwxr-xr-xsrc/aif.sh6
-rw-r--r--src/core/libs/lib-software.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/aif.sh b/src/aif.sh
index 1b898d7..9bdea2d 100755
--- a/src/aif.sh
+++ b/src/aif.sh
@@ -271,6 +271,12 @@ module=
procedure=
+# TODO: you cannot override $var_OPTS_STRING, nor process_args. because profile not sourced yet
+# we will hit '?)' and exit 5
+# solutions? don't make $var_OPTS_STRING overridable, source correct profile as early as possible so process_args gets known. remove the '?)' catchall (eg put it in the default process_args) so we don't hit it accidentially
+# in that case -p needs to be the first option, but that's doable imho
+# an alternative would be to provide an argumentstring for the profile. eg aif -p profile -a "-a a -b b -c c"
+
var_OPTS_STRING=":i:dlp:" # you can override this variable in your procedure.
while getopts $var_OPTS_STRING OPTION
do
diff --git a/src/core/libs/lib-software.sh b/src/core/libs/lib-software.sh
index af26137..6b4a1a8 100644
--- a/src/core/libs/lib-software.sh
+++ b/src/core/libs/lib-software.sh
@@ -26,7 +26,7 @@ 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 -S $TARGET_PACKAGES" $TMP_PACMAN_LOG
+ run_background pacman-installpkg "$PACMAN_TARGET -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)
follow_progress " Installing... Please Wait " $TMP_PACMAN_LOG
wait_for pacman-installpkg