unity/scripts/respin.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 61a19a183b9bc4486229255f873a33c486303942
Author: Jeroen van Meeuwen (Fedora Unity) <kanarip(a)fedoraunity.org>
Date: Fri Feb 27 17:48:38 2009 +0100
Make the log file end up in the correct location (revisor_cwd)
Redirect stderr to the log file, too
diff --git a/unity/scripts/respin.sh b/unity/scripts/respin.sh
index 3714e9f..70a25d6 100755
--- a/unity/scripts/respin.sh
+++ b/unity/scripts/respin.sh
@@ -26,7 +26,8 @@
# # config_opts['plugin_conf']['bind_mount_enable'] = True
# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/selinux/', '/selinux/' ))
# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/srv/revisor/', '/srv/revisor/' ))
-# # (optional)
+# # (optional, saves you a lot of downloads if you run the default revisor setup and are respinning
+# # in batch)
# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/var/tmp/revisor-yumcache/', '/var/tmp/revisor-yumcache/' ))
#
##
@@ -231,6 +232,7 @@ for version in $VERSIONS; do
fi
if [ $INSTALL -eq 1 ]; then
+ cd ${revisor_cwd}
[ $JUST_LIST -eq 1 ] && echo f$version-$arch-respin && continue
@@ -257,7 +259,7 @@ for version in $VERSIONS; do
./revisor.py --cli --config unity/conf/f$version-install-respin.conf \\
--destination-directory /srv/revisor/$datestamp/ \\
--model f$version-$arch-respin --debug 9 \\
- --clean-up $cleanup\n" | mock -v -r fedora-$version-$arch shell >> revisor-f$version-$arch-respin.log
+ --clean-up $cleanup\n" | mock -v -r fedora-$version-$arch shell >> revisor-f$version-$arch-respin.log 2>&1
[ $? -gt 0 ] && \
printf "Spin f$version-$arch-respin failed, log file attached.$MESSAGE_END" "$datestamp" "f$version-$arch-respin" \