about summary refs log tree commit homepage
path: root/script/public-inbox-purge
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-15 01:18:08 +0000
committerEric Wong <e@80x24.org>2019-05-15 01:18:54 +0000
commit0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb (patch)
treea9295edad8c28aec3f87fc35c9142d87d4fea39e /script/public-inbox-purge
parent70caf43a131fc5bdf7104f82f2acee9d5353d6a8 (diff)
downloadpublic-inbox-0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb.tar.gz
More tests work without Search::Xapian, now.
Usability issues still need to be fixed
Diffstat (limited to 'script/public-inbox-purge')
-rwxr-xr-xscript/public-inbox-purge5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/public-inbox-purge b/script/public-inbox-purge
index 688dd950..264bcdef 100755
--- a/script/public-inbox-purge
+++ b/script/public-inbox-purge
@@ -63,6 +63,11 @@ if ($all) {
                                 mainrepo => $dir,
                         });
                 };
+
+                # somebody could "rm -r" all the Xapian directories;
+                # let them purge the overview, at least
+                $ibx->{indexlevel} ||= 'basic' unless $ibx->search;
+
                 push @inboxes, $ibx;
         }