(self, catalog_name)
Renames existing generated catalog files.
Renames existing generated catalog files.
Renames existing generated catalog files .
def RenameCatalog(self, catalog_name):
    """Renames existing generated catalog files."""
    new_catalog = '%s%s_new.catalog' % (catalog_name, self.os_version)
    old_catalog = '%s%s_old.catalog' % (catalog_name, self.os_version)
    if os.path.exists(new_catalog):
      try:
        os.rename(new_catalog, old_catalog)
        print '%s renamed' % new_catalog
      except OSError, e:
        print ('Could not rename catalog! Check file permissions in your '
               'build directory!')
        print 'Error: %s' % e
        raise SystemExit
def RenameCatalog ( self , catalog_name ) : new_catalog = '%s%s_new.catalog' % ( catalog_name , self . os_version ) old_catalog = '%s%s_old.catalog' % ( catalog_name , self . os_version ) if os . path . exists ( new_catalog ) : try : os . rename ( new_catalog , old_catalog ) print '%s renamed' % new_catalog except OSError , e : print ( 'Could not rename catalog! Check file permissions in your ' 'build directory!' ) print 'Error: %s' % e raise SystemExit