summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-10 07:52:55 +0200
committerhut <hut@lavabit.com>2010-10-10 07:53:31 +0200
commit3744fed33e482856ffbdd692a4fba1e2ce3037dd (patch)
treeffa296bab01d41b5ef8b38600d683adff96a47c0
parentba4731340e1dc9ddb9d7765aaff98c6a2ce58d46 (diff)
downloadranger-3744fed33e482856ffbdd692a4fba1e2ce3037dd.tar.gz
data/scope, fsobject: added xpi to container extensions
-rwxr-xr-xranger/data/scope.sh2
-rw-r--r--ranger/fsobject/fsobject.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 788ec33c..30ae18ea 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -33,7 +33,7 @@ function have { type -P "$1" > /dev/null; } # test if program is installed
 case "$extension" in
 	# Archive extensions:
 	7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
-	rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xz|Z|zip)
+	rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
 		atool -l "$path" | head -n $maxln && exit 3
 		exit 1;;
 	pdf)
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index 9d9f3db6..e513fc21 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -15,7 +15,7 @@
 
 CONTAINER_EXTENSIONS = ('7z', 'ace', 'ar', 'arc', 'bz', 'bz2', 'cab', 'cpio',
 	'cpt', 'deb', 'dgc', 'dmg', 'gz', 'iso', 'jar', 'msi', 'pkg', 'rar',
-	'shar', 'tar', 'tbz', 'tgz', 'xar', 'xz', 'zip')
+	'shar', 'tar', 'tbz', 'tgz', 'xar', 'xpi', 'xz', 'zip')
 
 import re
 from os import access, listdir, lstat, readlink, stat