Logo Search packages:      
Sourcecode: sabayon version File versions  Download package

def lib::cache::cacheRepository::__save_catalog (   self  )  [private]

Save the on disk catalog in XML format

Definition at line 136 of file cache.py.

00136                             :
        """Save the on disk catalog in XML format"""
      # don't save an empty catalog, and remove it if empty
      if self.catalog == None or self.root == None or \
         self.root.children == None:
          try:
            os.unlink(self.directory + "/catalog.xml")
          except:
              pass
          return
        if self.catalog != None and self.directory != None:
          f = open(self.directory + "/catalog.xml", "w")
          f.write(self.catalog.serialize(format = 1))
          f.close()

    def __update_catalog(self, URL, timestamp = None):


Generated by  Doxygen 1.6.0   Back to index