[Fai-commit] r4470 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Sat Aug 4 19:56:00 UTC 2007
Author: lange
Date: 2007-08-04 19:55:59 +0000 (Sat, 04 Aug 2007)
New Revision: 4470
Modified:
trunk/bin/fai-mirror
Log:
abort if mkdir fails
Modified: trunk/bin/fai-mirror
===================================================================
--- trunk/bin/fai-mirror 2007-08-04 19:47:04 UTC (rev 4469)
+++ trunk/bin/fai-mirror 2007-08-04 19:55:59 UTC (rev 4470)
@@ -25,7 +25,7 @@
# MA 02111-1307, USA.
#*********************************************************************
-version="Version 1.9.5, 5-july-2007"
+version="Version 1.9.6, 4-august-2007"
# variables: NFSROOT, FAI_CONFIGDIR
@@ -125,7 +125,7 @@
aptmovefile=$aptcache/etc/apt-move.conf # stores apt-move.conf
statefile=$aptcache/statefile
- # also used in install_pacakges.conf
+ # also used in install_packages.conf
export aptoptions=" \
-o Aptitude::Log=/dev/null \
-o Aptitude::CmdLine::Ignore-Trust-Violations=yes\
@@ -144,9 +144,10 @@
# ."-o APT::Get::Download-Only=true -o Aptitude::Cmd-Line::Download-Only=true "
# we only need some empty dirs
- mkdir -p $archivedir/partial $aptcache/etc/apt
- mkdir -p $aptcache/var/lib/apt/lists/partial
+ set -e
+ mkdir -p $archivedir/partial $aptcache/etc/apt $aptcache/var/lib/apt/lists/partial
> $statefile
+ set +e
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
delete_base_packages() {
More information about the Fai-commit
mailing list