summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rw-r--r--bitbake/lib/toaster/toastergui/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 3b5b9f5bd9..40aed265dc 100644
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2018,6 +2018,14 @@ class CommandLineBuilds(TemplateView):
2018 logs_dir = request.POST.get('dir') 2018 logs_dir = request.POST.get('dir')
2019 all_files = request.POST.get('all') 2019 all_files = request.POST.get('all')
2020 2020
2021 # check if a build is already in progress
2022 if Build.objects.filter(outcome=Build.IN_PROGRESS):
2023 messages.add_message(
2024 self.request,
2025 messages.ERROR,
2026 "A build is already in progress. Please wait for it to complete before starting a new build."
2027 )
2028 return JsonResponse({'response': 'building'})
2021 imported_files = EventLogsImports.objects.all() 2029 imported_files = EventLogsImports.objects.all()
2022 try: 2030 try:
2023 if all_files == 'true': 2031 if all_files == 'true':