Fixes odd mount-umount order of original mach. Absolutely required by
djinni since last action before 'rpmbuild --rebuild' would be an
unmount...


2003-11-13  Enrico Scholz  <enrico.scholz@informatik.tu-chemnitz.de>

	* created initially
--- mach/scripts/mach.in~mount	2003-11-13 18:51:39.000000000 +0100
+++ mach/scripts/mach.in	2003-11-13 19:09:37.000000000 +0100
@@ -442,7 +442,6 @@
     def aptget (self, arg, message = None,
                 progress = False, interactive = False):
         "run apt-get (arg) from outside the root on the root"
-        self.mount ()
         conf = os.path.join (self.statedir, 'apt.conf')
         command = "%s -c %s %s" % (self.config['apt-get'], conf, arg)
         if interactive:
@@ -451,14 +450,15 @@
         if progress: self.stdout (' ...')
         (status, output) = do_with_output (command, progress)
         if message and not progress: self.stdout ('\n')
-        self.umount ()
         if status != 0:
             raise self.Error, "Could not apt-get %s" % arg
 
     def intaptget (self, arg):
         if not self.get_state ('base'):
             self.setup ('base')
+        self.mount ()
         self.aptget (arg, interactive = True)
+        self.umount ()
 
     def aptcache (self, arg, progress = False):
         "run apt-cache (arg) from outside the root on the root"
@@ -1109,10 +1109,14 @@
         for filename in self.config['files'].keys ():
             self.config_recreate (filename)
 
+        self.mount ()
         self._install ('minimal')
+        self.umount ()
 
     def _setup_base (self):
+        self.mount ()
         self._install ('base')
+        self.umount ()
 
     def _setup_build (self):
         "set up a root for rpm building"
