Ejemplo n.º 1
0
 def _show_version(self, *args):
     # do not use entropy_client here
     # it is slow and might interfere with
     # other Client inits.
     release = read_client_release()
     text = TextInterface()
     text.output(release, level="generic")
     return 0
Ejemplo n.º 2
0
 def _show_version(self, *args):
     # do not use entropy_client here
     # it is slow and might interfere with
     # other Client inits.
     release = read_client_release()
     text = TextInterface()
     text.output(release, level="generic")
     return 0
Ejemplo n.º 3
0
def warn_version_mismatch():
    equo_ver = read_client_release()
    entropy_ver = etpConst['entropyversion']
    if equo_ver != entropy_ver:
        print_warning("")
        print_warning("%s: %s" % (
            bold(_("Entropy/Equo version mismatch")),
            purple(_("it could make your system explode!")),))
        print_warning("(%s [equo] & %s [entropy])" % (
            blue(equo_ver),
            blue(entropy_ver),))
        print_warning("")
Ejemplo n.º 4
0
def warn_version_mismatch():
    equo_ver = read_client_release()
    entropy_ver = etpConst['entropyversion']
    if equo_ver != entropy_ver:
        print_warning("")
        print_warning("%s: %s" % (
            bold(_("Entropy/Equo version mismatch")),
            purple(_("it could make your system explode!")),
        ))
        print_warning("(%s [equo] & %s [entropy])" % (
            blue(equo_ver),
            blue(entropy_ver),
        ))
        print_warning("")