def _add_new_repo(alias, uri, compressed, enabled=True):
 repostr = ('# ' if (not enabled) else '')
 repostr += ('src/gz ' if compressed else 'src ')
 repostr += (((alias + ' ') + uri) + '\n')
 conffile = os.path.join(OPKG_CONFDIR, (alias + '.conf'))
 with open(conffile, 'a') as fhandle:
  fhandle.write(repostr)

def _add_new_repo ( alias , uri , compressed , enabled = True ) : repostr = ( '# ' if ( not enabled ) else '' ) repostr += ( 'src/gz ' if compressed else 'src ' ) repostr += ( ( ( alias + ' ' ) + uri ) + '\n' ) conffile = os . path . join ( OPKG_CONFDIR , ( alias + '.conf' ) ) with open ( conffile , 'a' ) as fhandle : fhandle . write ( repostr )
add a new repo entry .