tools/validate_descriptor.py reconverted as python3 script 86/8086/4
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 23 Oct 2019 16:19:26 +0000 (18:19 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 18 Nov 2019 16:24:56 +0000 (17:24 +0100)
Change-Id: I6827fc17f79a99668205d74ae297fcfb41c1bb00
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
descriptor-packages/tools/generate_descriptor_pkg.sh
descriptor-packages/tools/validate_descriptor.py

index f54cd2c..1b9a9e0 100755 (executable)
@@ -797,7 +797,7 @@ if [ $CREATE == false ]; then
     cd $BASE_DIR
     # Mrityunjay Yadav: Validate descriptor
     GEN_BASEDIR=$(dirname "$0")
-    python $GEN_BASEDIR/validate_descriptor.py $BASE_DIR/$PKG/$descriptor
+    python3 $GEN_BASEDIR/validate_descriptor.py $BASE_DIR/$PKG/$descriptor
     if [ $? -ne 0 ]; then
         rc=$?
         echo "ERROR: validating descriptor for $PKG ($rc)" >&2
index 3c6dd41..92b61c9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 ##
@@ -110,7 +110,7 @@ if __name__ == "__main__":
 
         for o, a in opts:
             if o in ("-v", "--version"):
-                print ("test descriptor version THREE " + __version__ + ' ' + version_date)
+                print("test descriptor version THREE " + __version__ + ' ' + version_date)
                 sys.exit()
             elif o in ("-h", "--help"):
                 usage()