projects
/
osm
/
SO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Volume ref support
[osm/SO.git]
/
common
/
python
/
rift
/
mano
/
yang_translator
/
shell.py
diff --git
a/common/python/rift/mano/yang_translator/shell.py
b/common/python/rift/mano/yang_translator/shell.py
index
f353e92
..
915cd6c
100644
(file)
--- a/
common/python/rift/mano/yang_translator/shell.py
+++ b/
common/python/rift/mano/yang_translator/shell.py
@@
-149,7
+149,9
@@
class TranslatorShell(object):
if typ.startswith('text/plain'):
# Assume to be yaml
return self.YAML
if typ.startswith('text/plain'):
# Assume to be yaml
return self.YAML
- elif typ.startswith('application/x-gzip'):
+ # On Fedora 20, it return x-gzip, while on Ubuntu 16 it is gzip
+ elif typ.startswith('application/x-gzip') or \
+ typ.startswith('application/gzip') :
return self.TAR
else:
msg = _("The file {0} is not a supported type: {1}"). \
return self.TAR
else:
msg = _("The file {0} is not a supported type: {1}"). \