def _repo_changes(realrepo, repocmp):
 for k in repocmp:
  if (repocmp[k] and (k not in realrepo)):
   return True
 for (k, v) in realrepo.items():
  if ((k in repocmp) and repocmp[k]):
   valold = str((repocmp[k] or ''))
   valnew = (v or '')
   if (k == 'url'):
    (valold, valnew) = (valold.rstrip('/'), valnew.rstrip('/'))
   if (valold != valnew):
    return True
 return False

def _repo_changes ( realrepo , repocmp ) : for k in repocmp : if ( repocmp [ k ] and ( k not in realrepo ) ) : return True for ( k , v ) in realrepo . items ( ) : if ( ( k in repocmp ) and repocmp [ k ] ) : valold = str ( ( repocmp [ k ] or '' ) ) valnew = ( v or '' ) if ( k == 'url' ) : ( valold , valnew ) = ( valold . rstrip ( '/' ) , valnew . rstrip ( '/' ) ) if ( valold != valnew ) : return True return False
check whether the 2 given repos have different settings .