(self)
Writes the catalog file to disk.
Writes the catalog file to disk.
Writes the catalog file to disk .
def WriteCatalog(self):
    """Writes the catalog file to disk."""
    try:
      f = open(self.new_catalogfile, 'w')
      print 'Writing %s to disk...' % self.new_catalogfile
      for line in self.newcatalog:
        if line:
          f.write('%s\n' % line)
      f.close()
    except IOError, e:
      print ('Writing new catalog failed! Check file permissions in your '
             'build directory!')
      print 'Error: %s' % e
      raise SystemExit
def WriteCatalog ( self ) : try : f = open ( self . new_catalogfile , 'w' ) print 'Writing %s to disk...' % self . new_catalogfile for line in self . newcatalog : if line : f . write ( '%s\n' % line ) f . close ( ) except IOError , e : print ( 'Writing new catalog failed! Check file permissions in your ' 'build directory!' ) print 'Error: %s' % e raise SystemExit