Commits

Anonymous committed 6403b04

Ignore '--jobs' if '--no-network' is used.

Running parallel jobs is inefficient if no real updates are performed.
Thus, it's acceptable to just ignore that option whenever '--no-network'
is used.

  • Participants
  • Parent commits 9815c01

Comments (0)

Files changed (1)

File smart-live-rebuild.py

 	if opts.jobs <= 0:
 		out.err('The argument to --jobs option must be a positive integer.')
 		return 1
+	elif opts.jobs > 1 and not opts.update:
+		out.s1('Using parallel jobs with --no-network is inefficient, assuming no --jobs.')
+		opts.jobs = 1
 
 	childpid = None
 	commpipe = None