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)


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