diff --git a/main.py b/main.py index 06cd110..98234cb 100755 --- a/main.py +++ b/main.py @@ -348,12 +348,20 @@ repo: error: sys.exit(1) if exp > ver: - print(""" -... A new version of repo (%s) is available. + print('\n... A new version of repo (%s) is available.' % (exp_str,), + file=sys.stderr) + if os.access(repo_path, os.W_OK): + print("""\ ... You should upgrade soon: - cp %s %s -""" % (exp_str, WrapperPath(), repo_path), file=sys.stderr) +""" % (WrapperPath(), repo_path), file=sys.stderr) + else: + print("""\ +... New version is available at: %s +... The launcher is run from: %s +!!! The launcher is not writable. Please talk to your sysadmin or distro +!!! to get an update installed. +""" % (WrapperPath(), repo_path), file=sys.stderr) def _CheckRepoDir(repo_dir):