Merge "Move the '--partial' flag and output configuration to the backend." am: 52c76356a5

Original change: https://android-review.googlesource.com/c/platform/development/+/1771645

Change-Id: If1334d52db4dcb0aaee24567af348a098fe086a3
This commit is contained in:
Treehugger Robot
2021-07-19 21:46:28 +00:00
committed by Automerger Merge Worker
3 changed files with 7 additions and 9 deletions

View File

@@ -172,8 +172,8 @@ class ProcessesManagement:
# Check essential configuration is properly set
if not os.path.isfile(args['target']):
raise FileNotFoundError
if not args['output']:
raise SyntaxError
if not 'output' in args:
args['output'] = os.path.join('output', str(id) + '.zip')
if args['verbose']:
command.append('-v')
command.append('-k')
@@ -186,15 +186,14 @@ class ProcessesManagement:
command.append(args['incremental'])
if args['isPartial']:
command.append('--partial')
command.append(args['partial'])
command.append(' '.join(args['partial']))
command.append(args['target'])
command.append(args['output'])
job_info = JobInfo(id,
target=args['target'],
incremental=args['incremental'] if args['isIncremental'] else '',
verbose=args['verbose'],
partial=args['partial'].split(
' ') if args['isPartial'] else [],
partial=args['partial'] if args['isPartial'] else [],
output=args['output'],
status='Running',
extra=args['extra'],

View File

@@ -52,10 +52,10 @@ export default {
watch: {
partitionSelected: {
handler: function() {
let list = ''
let list = []
for (let [key, value] of this.partitionSelected) {
if (value) {
list += key + ' '
list.push(key)
}
}
this.$emit('update:modelValue', list)

View File

@@ -14,10 +14,9 @@ export class OTAConfiguration {
constructor() {
this.verbose = false,
this.target = '',
this.output = 'output/' + String(this.id) + '.zip',
this.incremental = '',
this.isIncremental = false,
this.partial = '',
this.partial = [],
this.isPartial = false,
this.extra = '',
this.id = uuid.v1()