summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-23 23:11:40 +0200
committerhut <hut@lavabit.com>2011-10-23 23:12:18 +0200
commit25c9aa011cedfd58a5b18bc45698b192d9411ea4 (patch)
tree2734dbf53a62c1a50be1d3cf3c9336c680f0a9ea
parent6d212a856e9efbfafd5b1540bcb2852199c1787f (diff)
downloadranger-25c9aa011cedfd58a5b18bc45698b192d9411ea4.tar.gz
Added constant ranger.STABLE to indicate stable versions
-rw-r--r--ranger/__init__.py1
-rw-r--r--ranger/core/helper.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py
index f321ee4f..ae467b30 100644
--- a/ranger/__init__.py
+++ b/ranger/__init__.py
@@ -36,6 +36,7 @@ TIME_BEFORE_FILE_BECOMES_GARBAGE = 1200
 MACRO_DELIMITER = '%'
 LOGFILE = '/tmp/ranger_errorlog'
 USAGE = '%prog [options] [path/filename]'
+STABLE = False
 
 # If the environment variable XDG_CONFIG_HOME is non-empty, CONFDIR is ignored
 # and the configuration directory will be $XDG_CONFIG_HOME/ranger instead.
diff --git a/ranger/core/helper.py b/ranger/core/helper.py
index 46d35f7a..c22a52b8 100644
--- a/ranger/core/helper.py
+++ b/ranger/core/helper.py
@@ -32,7 +32,8 @@ def parse_arguments():
 	else:
 		default_confdir = CONFDIR
 
-	parser = OptionParser(usage=USAGE, version='ranger '+__version__)
+	parser = OptionParser(usage=USAGE, version='ranger %s%s' \
+			% (__version__, " (stable)" if STABLE else ""))
 
 	parser.add_option('-d', '--debug', action='store_true',
 			help="activate debug mode")