1. Michał Górny
  2. smart-live-rebuild


Michał Górny  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
  • Branches master

Comments (0)

Files changed (1)

File smart-live-rebuild.py

View file
 	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