def check_for_unsupported_version():
 fnull = open(os.devnull, 'w')
 process = subprocess.call(['/usr/bin/dpkg-query', '-l', 'rbp-mediacenter-osmc'], stderr=fnull, stdout=fnull)
 fnull.close()
 if (process == 0):
  ok = xbmcgui.Dialog().ok(lang(32017), lang(32018), lang(32019))
  return 'alpha'
 else:
  return 'proceed'

def check_for_unsupported_version ( ) : fnull = open ( os . devnull , 'w' ) process = subprocess . call ( [ '/usr/bin/dpkg-query' , '-l' , 'rbp-mediacenter-osmc' ] , stderr = fnull , stdout = fnull ) fnull . close ( ) if ( process == 0 ) : ok = xbmcgui . Dialog ( ) . ok ( lang ( 32017 ) , lang ( 32018 ) , lang ( 32019 ) ) return 'alpha' else : return 'proceed'
checks if this version is an alpha .