summaryrefslogtreecommitdiff
path: root/src/core/procedures/base
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-20 17:31:25 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-20 17:31:25 +0100
commitcd6c7c01579bc37c458eac1a649ef74f17def3cb (patch)
tree38fe9ab53b136ce205ffede180d1b5acb76023b5 /src/core/procedures/base
parent2423504e4e99c3be0403655f2461e58daef38af3 (diff)
fixes/cleanups for runtime packages and repositories. Not much use in making yauort a module, its integrated now
Diffstat (limited to 'src/core/procedures/base')
-rw-r--r--src/core/procedures/base13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/procedures/base b/src/core/procedures/base
index 1c1d640..4fd32c8 100644
--- a/src/core/procedures/base
+++ b/src/core/procedures/base
@@ -3,6 +3,7 @@
#TODO: make this profile work on itself, eg some stuff from inheriting profiles should be moved in, stuff implemented etc
var_DEFAULTFS="/boot:32:ext2:+ swap:256:swap /:7500:ext3 /home:*:ext3"
var_TARGET_DIR="/mnt" # When overriding this, do _not_ add a trailing /. It's not needed and maybe you could even break something
+var_RUNTIME_REPOSITORIES= # array like this ('name1' 'location of repo 1' ['name2' 'location of repo2',..])
var_RUNTIME_PACKAGES=
var_PKG_FILE=$RUNTIME_DIR/package-list # not used by default in base/interactive. can be used by custom procedures or profiles for the automatic procedure
var_MIRRORLIST="/etc/pacman.d/mirrorlist"
@@ -17,6 +18,7 @@ phase_preparation=(\
sysprep \
select_source \
runtime_network \
+ runtime_repositories \
runtime_packages)
phase_basics=(\
@@ -77,6 +79,17 @@ worker_runtime_network ()
}
+worker_runtime_repositories ()
+{
+ for i in `seq 0 $((${#var_RUNTIME_REPOSITORIES[@]}/2-1))`
+ do
+ repo=${var_RUNTIME_REPOSITORIES[$(($i*2))]}
+ location=${var_RUNTIME_REPOSITORIES[$(($i*2+1))]}
+ list_pacman_repos runtime | grep -q $repo || add_pacman_repo runtime $repo $location
+ done
+}
+
+
worker_runtime_packages ()
{
for pkg in $var_RUNTIME_PACKAGES