diff options
-rwxr-xr-x | main.py | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -348,12 +348,20 @@ repo: error: | |||
348 | sys.exit(1) | 348 | sys.exit(1) |
349 | 349 | ||
350 | if exp > ver: | 350 | if exp > ver: |
351 | print(""" | 351 | print('\n... A new version of repo (%s) is available.' % (exp_str,), |
352 | ... A new version of repo (%s) is available. | 352 | file=sys.stderr) |
353 | if os.access(repo_path, os.W_OK): | ||
354 | print("""\ | ||
353 | ... You should upgrade soon: | 355 | ... You should upgrade soon: |
354 | |||
355 | cp %s %s | 356 | cp %s %s |
356 | """ % (exp_str, WrapperPath(), repo_path), file=sys.stderr) | 357 | """ % (WrapperPath(), repo_path), file=sys.stderr) |
358 | else: | ||
359 | print("""\ | ||
360 | ... New version is available at: %s | ||
361 | ... The launcher is run from: %s | ||
362 | !!! The launcher is not writable. Please talk to your sysadmin or distro | ||
363 | !!! to get an update installed. | ||
364 | """ % (WrapperPath(), repo_path), file=sys.stderr) | ||
357 | 365 | ||
358 | 366 | ||
359 | def _CheckRepoDir(repo_dir): | 367 | def _CheckRepoDir(repo_dir): |