summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
index 5e70437b24..6b1da1b103 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
@@ -70,11 +70,11 @@ class Command(NoArgsCommand):
70 return True 70 return True
71 71
72 if len(be.sourcedir) == 0: 72 if len(be.sourcedir) == 0:
73 print "\n -- Validation: The layers checkout directory must be set." 73 print("\n -- Validation: The layers checkout directory must be set.")
74 is_changed = _update_sourcedir() 74 is_changed = _update_sourcedir()
75 75
76 if not be.sourcedir.startswith("/"): 76 if not be.sourcedir.startswith("/"):
77 print "\n -- Validation: The layers checkout directory must be set to an absolute path." 77 print("\n -- Validation: The layers checkout directory must be set to an absolute path.")
78 is_changed = _update_sourcedir() 78 is_changed = _update_sourcedir()
79 79
80 if is_changed: 80 if is_changed:
@@ -87,16 +87,16 @@ class Command(NoArgsCommand):
87 return True 87 return True
88 88
89 if len(be.builddir) == 0: 89 if len(be.builddir) == 0:
90 print "\n -- Validation: The build directory must be set." 90 print("\n -- Validation: The build directory must be set.")
91 is_changed = _update_builddir() 91 is_changed = _update_builddir()
92 92
93 if not be.builddir.startswith("/"): 93 if not be.builddir.startswith("/"):
94 print "\n -- Validation: The build directory must to be set to an absolute path." 94 print("\n -- Validation: The build directory must to be set to an absolute path.")
95 is_changed = _update_builddir() 95 is_changed = _update_builddir()
96 96
97 97
98 if is_changed: 98 if is_changed:
99 print "\nBuild configuration saved" 99 print("\nBuild configuration saved")
100 be.save() 100 be.save()
101 return True 101 return True
102 102
@@ -104,20 +104,20 @@ class Command(NoArgsCommand):
104 if be.needs_import: 104 if be.needs_import:
105 try: 105 try:
106 config_file = os.environ.get('TOASTER_CONF') 106 config_file = os.environ.get('TOASTER_CONF')
107 print "\nImporting file: %s" % config_file 107 print("\nImporting file: %s" % config_file)
108 from loadconf import Command as LoadConfigCommand 108 from loadconf import Command as LoadConfigCommand
109 109
110 LoadConfigCommand()._import_layer_config(config_file) 110 LoadConfigCommand()._import_layer_config(config_file)
111 # we run lsupdates after config update 111 # we run lsupdates after config update
112 print "\nLayer configuration imported. Updating information from the layer sources, please wait.\nYou can re-update any time later by running bitbake/lib/toaster/manage.py lsupdates" 112 print("\nLayer configuration imported. Updating information from the layer sources, please wait.\nYou can re-update any time later by running bitbake/lib/toaster/manage.py lsupdates")
113 from django.core.management import call_command 113 from django.core.management import call_command
114 call_command("lsupdates") 114 call_command("lsupdates")
115 115
116 # we don't look for any other config files 116 # we don't look for any other config files
117 return is_changed 117 return is_changed
118 except Exception as e: 118 except Exception as e:
119 print "Failure while trying to import the toaster config file %s: %s" %\ 119 print("Failure while trying to import the toaster config file %s: %s" %\
120 (config_file, e) 120 (config_file, e))
121 traceback.print_exc(e) 121 traceback.print_exc(e)
122 122
123 return is_changed 123 return is_changed