]> Sergey Matveev's repositories - public-inbox.git/commitdiff
index: disable --fast-noop on --reindex
authorEric Wong <e@80x24.org>
Fri, 25 Dec 2020 10:21:09 +0000 (10:21 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2020 06:22:56 +0000 (06:22 +0000)
These options make no sense when used together, just inform the
user and move on since it's probably harmless to continue.

script/public-inbox-index

index 91afac88a23f7af2cd63ec12a5815605ec15a495..87893ef15bc66fdb049cc1ad7160cd250557c237 100755 (executable)
@@ -49,6 +49,9 @@ die "--jobs must be >= 0\n" if defined $opt->{jobs} && $opt->{jobs} < 0;
 if ($opt->{xapian_only} && !$opt->{reindex}) {
        die "--xapian-only requires --reindex\n";
 }
+if ($opt->{reindex} && delete($opt->{'fast-noop'})) {
+       warn "--fast-noop ignored with --reindex\n";
+}
 
 # require lazily to speed up --help
 require PublicInbox::Admin;