summaryrefslogtreecommitdiffstats
path: root/tasks/update.task.sh
diff options
context:
space:
mode:
authorSebastian2010-04-09 23:56:28 +0200
committerSebastian2010-04-09 23:56:28 +0200
commitbbf39bd59f31084d499c2cdd064274093b39dad8 (patch)
tree6715dffc0fc60fec9df5efdbe6a127faf454881b /tasks/update.task.sh
parentadded caching (diff)
downloadbroot-bbf39bd59f31084d499c2cdd064274093b39dad8.tar.gz
broot-bbf39bd59f31084d499c2cdd064274093b39dad8.tar.xz
broot-bbf39bd59f31084d499c2cdd064274093b39dad8.zip
added dependency based system to run defined tasks
Diffstat (limited to 'tasks/update.task.sh')
-rw-r--r--tasks/update.task.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/update.task.sh b/tasks/update.task.sh
new file mode 100644
index 0000000..f6ec089
--- /dev/null
+++ b/tasks/update.task.sh
@@ -0,0 +1,10 @@
+update_package_dependencies="bootstrap"
+
+update() {
+ ME=update
+ echo " Refresh apt sources"
+ chroot-exec aptitude update > $DEBUG.$ME 2>&1
+ echo -n " Running system update "
+ chroot-exec aptitude -y safe-upgrade | tee -a - $DEBUG.$ME | awk '{printf "."}' 2>&1
+ echo "done"
+}