diff options
author | hut <hut@lavabit.com> | 2013-02-05 03:42:15 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-05 03:42:15 +0100 |
commit | ef027bcdc4763c13c3ad08411ab3cacf68a956d5 (patch) | |
tree | 02dc526a96350b30db58d63c3e02b16922d79a8c /ranger | |
parent | f277b68139d79169c43c07d415954667797a0d30 (diff) | |
download | ranger-ef027bcdc4763c13c3ad08411ab3cacf68a956d5.tar.gz |
core.fm: ask user to update configs when updating ranger
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/fm.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py index 3c100532..0cd3cb5c 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -186,7 +186,11 @@ class FM(Actions, SignalDispatcher): copy('data/scope.sh', 'scope.sh') os.chmod(self.confpath('scope.sh'), os.stat(self.confpath('scope.sh')).st_mode | stat.S_IXUSR) - if which not in ('all', 'rifle', 'scope', 'commands', 'rc'): + if which in ('all', 'rifle', 'scope', 'commands', 'rc'): + sys.stderr.write("\nPlease note that configuration files may " + "change as ranger evolves.\nIt's completely up to you to keep " + "them up to date.\n") + else: sys.stderr.write("Unknown config file `%s'\n" % which) def confpath(self, *paths): |