summary refs log tree commit diff stats
path: root/ranger
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:41 +0200
commite742855d3c98f6dc5888d5aa32c03b0fca7a3ce7 (patch)
treedf358ef128b0d39bd79f6b8ef011fb18ca6e6972 /ranger
parentfcc74912086a9b2edfc501e7f9d5749fc5a2914b (diff)
downloadranger-e742855d3c98f6dc5888d5aa32c03b0fca7a3ce7.tar.gz
Added constant ranger.STABLE to indicate stable versions
Diffstat (limited to 'ranger')
-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")