Merge branch 'v1.0'
authorJeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
Fri, 23 Dec 2016 18:46:20 +0000 (13:46 -0500)
committerJeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
Fri, 23 Dec 2016 18:46:20 +0000 (13:46 -0500)
BUILD.sh
common/python/rift/mano/yang_translator/shell.py

index 4521ca7..ec01675 100755 (executable)
--- a/BUILD.sh
+++ b/BUILD.sh
@@ -171,6 +171,7 @@ fi
 if $runMkcontainer; then
     sudo apt-get install -y libxml2-dev libxslt-dev
     sudo /usr/rift/container_tools/mkcontainer --modes build --modes ext --repo ${PLATFORM_REPOSITORY}
+    sudo pip3 install -y lxml==3.4.0
 fi
 
 
index f353e92..915cd6c 100644 (file)
@@ -149,7 +149,9 @@ class TranslatorShell(object):
         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}"). \