old_contents: import subprocess
  import os
  import logging
  from inaugurator import reportthread
  
  
  class Osmose:
      def __init__(self, destination, objectStores, withLocalObjectStore, noChainTouch, ignoreDirs,
                   talkToServer):
          absoluteIgnoreDirs = [os.path.join(destination, ignoreDir) for ignoreDir in ignoreDirs]
          logging.info("Osmosing parameters: withLocalObjectStore: %(withLocalObjectStore)s", dict(
              withLocalObjectStore=withLocalObjectStore))
          if withLocalObjectStore:
              osmosisDir = os.path.join(destination, "var", "lib", "osmosis")
              if os.path.islink(osmosisDir):
                  logging.info("It appears that the osmosis directory is a symbolic link. Removing it...")
                  os.unlink(osmosisDir)
                  logging.info("Sybmolic link removed.")
              localObjectStore = os.path.join(osmosisDir, "objectstore")
              absoluteIgnoreDirs.append(localObjectStore)
              objectStores = localObjectStore + ("+" + objectStores if objectStores else "")
          extra = []
          if noChainTouch:
              extra += ["--noChainTouch"]
          if len(absoluteIgnoreDirs) > 0:
              extra += ['--ignore', ":".join(absoluteIgnoreDirs)]
          if talkToServer is not None:
              reportthread.ReportThread(talkToServer)
              extra += ['--reportFile', reportthread.ReportThread.FIFO]
          cmd = [
              "/usr/bin/osmosis", "checkout", destination, '+', '--MD5', '--putIfMissing',
              '--removeUnknownFiles', '--objectStores', objectStores] + extra
          print "Running osmosis:\n%s" % " ".join(cmd)
          self._popen = subprocess.Popen(cmd, close_fds=True, stdin=subprocess.PIPE)
  
      def tellLabel(self, label):
          self._popen.stdin.write(label + "\n")
          self._popen.stdin.close()
  
      def wait(self):
          result = self._popen.wait()
          if result != 0:
              raise Exception("Osmosis failed")
  
new_contents: import subprocess
  import os
  import logging
  from inaugurator import reportthread
  
  
  class Osmose:
      def __init__(self, destination, objectStores, withLocalObjectStore, noChainTouch, ignoreDirs,
                   talkToServer):
          absoluteIgnoreDirs = [os.path.join(destination, ignoreDir) for ignoreDir in ignoreDirs]
          logging.info("Osmosing parameters: withLocalObjectStore: %(withLocalObjectStore)s", dict(
              withLocalObjectStore=withLocalObjectStore))
          if withLocalObjectStore:
              osmosisDir = os.path.join(destination, "var", "lib", "osmosis")
              if os.path.islink(osmosisDir):
                  logging.info("It appears that the osmosis directory is a symbolic link. Removing it...")
                  os.unlink(osmosisDir)
                  logging.info("Sybmolic link removed.")
              localObjectStore = os.path.join(osmosisDir, "objectstore")
              absoluteIgnoreDirs.append(localObjectStore)
              objectStores = localObjectStore + ("+" + objectStores if objectStores else "")
          extra = []
          if noChainTouch:
              extra += ["--noChainTouch"]
          if len(absoluteIgnoreDirs) > 0:
              extra += ['--ignore', ":".join(absoluteIgnoreDirs)]
          if talkToServer is not None:
              reportthread.ReportThread(talkToServer)
              extra += ['--reportFile', reportthread.ReportThread.FIFO]
          cmd = [
              "/usr/bin/osmosis", "checkout", destination, '+', '--MD5', '--putIfMissing',
              "--reportIntervalSeconds", "6",
              '--removeUnknownFiles', '--objectStores', objectStores] + extra
          print "Running osmosis:\n%s" % " ".join(cmd)
          self._popen = subprocess.Popen(cmd, close_fds=True, stdin=subprocess.PIPE)
  
      def tellLabel(self, label):
          self._popen.stdin.write(label + "\n")
          self._popen.stdin.close()
  
      def wait(self):
          result = self._popen.wait()
          if result != 0:
              raise Exception("Osmosis failed")
  
subject: Increase Osmosis' report frequency