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:
@@ -172,8 +172,8 @@ class ProcessesManagement:
|
|||||||
# Check essential configuration is properly set
|
# Check essential configuration is properly set
|
||||||
if not os.path.isfile(args['target']):
|
if not os.path.isfile(args['target']):
|
||||||
raise FileNotFoundError
|
raise FileNotFoundError
|
||||||
if not args['output']:
|
if not 'output' in args:
|
||||||
raise SyntaxError
|
args['output'] = os.path.join('output', str(id) + '.zip')
|
||||||
if args['verbose']:
|
if args['verbose']:
|
||||||
command.append('-v')
|
command.append('-v')
|
||||||
command.append('-k')
|
command.append('-k')
|
||||||
@@ -186,15 +186,14 @@ class ProcessesManagement:
|
|||||||
command.append(args['incremental'])
|
command.append(args['incremental'])
|
||||||
if args['isPartial']:
|
if args['isPartial']:
|
||||||
command.append('--partial')
|
command.append('--partial')
|
||||||
command.append(args['partial'])
|
command.append(' '.join(args['partial']))
|
||||||
command.append(args['target'])
|
command.append(args['target'])
|
||||||
command.append(args['output'])
|
command.append(args['output'])
|
||||||
job_info = JobInfo(id,
|
job_info = JobInfo(id,
|
||||||
target=args['target'],
|
target=args['target'],
|
||||||
incremental=args['incremental'] if args['isIncremental'] else '',
|
incremental=args['incremental'] if args['isIncremental'] else '',
|
||||||
verbose=args['verbose'],
|
verbose=args['verbose'],
|
||||||
partial=args['partial'].split(
|
partial=args['partial'] if args['isPartial'] else [],
|
||||||
' ') if args['isPartial'] else [],
|
|
||||||
output=args['output'],
|
output=args['output'],
|
||||||
status='Running',
|
status='Running',
|
||||||
extra=args['extra'],
|
extra=args['extra'],
|
||||||
|
|||||||
@@ -52,10 +52,10 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
partitionSelected: {
|
partitionSelected: {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
let list = ''
|
let list = []
|
||||||
for (let [key, value] of this.partitionSelected) {
|
for (let [key, value] of this.partitionSelected) {
|
||||||
if (value) {
|
if (value) {
|
||||||
list += key + ' '
|
list.push(key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.$emit('update:modelValue', list)
|
this.$emit('update:modelValue', list)
|
||||||
|
|||||||
@@ -14,10 +14,9 @@ export class OTAConfiguration {
|
|||||||
constructor() {
|
constructor() {
|
||||||
this.verbose = false,
|
this.verbose = false,
|
||||||
this.target = '',
|
this.target = '',
|
||||||
this.output = 'output/' + String(this.id) + '.zip',
|
|
||||||
this.incremental = '',
|
this.incremental = '',
|
||||||
this.isIncremental = false,
|
this.isIncremental = false,
|
||||||
this.partial = '',
|
this.partial = [],
|
||||||
this.isPartial = false,
|
this.isPartial = false,
|
||||||
this.extra = '',
|
this.extra = '',
|
||||||
this.id = uuid.v1()
|
this.id = uuid.v1()
|
||||||
|
|||||||
Reference in New Issue
Block a user