changeset 3454:4b50e27fd11a

fix bug #57266: Remove the 2to3 conversion in updates
author Luis Falcon <falcon@gnuhealth.org>
date Tue, 19 Nov 2019 08:33:28 +0000
parents 226d4f2fc702
children c2359d61204d
files tryton/gnuhealth-control
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/gnuhealth-control
+++ b/tryton/gnuhealth-control
@@ -385,9 +385,6 @@
         wget --quiet --directory-prefix=${UPDATE_DOWNLOAD_DIR}/trytond ${TRYTON_URL}/${TRYTON_MAJOR_MINOR}/${LATEST_TRYTOND} || bailout
         message "INFO" "--> Uncompressing TRYTON SERVER $LATEST_TRYTOND"
         tar -xzf ${UPDATE_DOWNLOAD_DIR}/trytond/${LATEST_TRYTOND} --directory ${GNUHEALTH_DIR}/tryton/server || bailout
-        message "INFO" "--> Converting to Python3"
-        cd ${GNUHEALTH_DIR}/tryton/server
-        find ./trytond-* -name "*.py" -exec 2to3 -wn {} \; || bailout
     fi
 
     if [ $NEED_UPDATE_MODULES -eq 1 ]; then
@@ -397,10 +394,6 @@
             wget --quiet --directory-prefix=${UPDATE_DOWNLOAD_DIR}/modules ${TRYTON_URL}/${TRYTON_MAJOR_MINOR}/${mod} || bailout
             message "INFO" "--> Uncompressing ${mod}"
             tar -xzf ${UPDATE_DOWNLOAD_DIR}/modules/${mod} --directory ${GNUHEALTH_DIR}/tryton/server/modules || bailout
-            message "INFO" "--> Converting to Python3... ${mod}"
-            cd ${GNUHEALTH_DIR}/tryton/server/modules
-            local moddir=$(basename ${mod} .tar.gz)
-            find ${moddir} -name "*.py" -exec 2to3 -wn {} \; || bailout
         done
     fi