projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/irspy
[irspy-moved-to-github.git]
/
bin
/
reindex.pl
diff --git
a/bin/reindex.pl
b/bin/reindex.pl
index
36fa799
..
54dfa62
100755
(executable)
--- a/
bin/reindex.pl
+++ b/
bin/reindex.pl
@@
-36,14
+36,14
@@
foreach my $i (1..$n) {
print " $i/$n (", int($i*100/$n), "%)\n" if $i % 50 == 0;
my $rec = $rs->record($i-1);
my $xml = $rec->render();
print " $i/$n (", int($i*100/$n), "%)\n" if $i % 50 == 0;
my $rec = $rs->record($i-1);
my $xml = $rec->render();
- if ($xml !~ /<\/(e:)?host>/) {
+ if ($xml !~ /<(e:)?databaseInfo.*?>/) {
# There is an undeletable phantom record: ignore it
next;
}
if ($setUdb) {
my $udb = qq[<i:udb xmlns:i="http://indexdata.com/irspy/1.0">irspy-$i</i:udb>];
# There is an undeletable phantom record: ignore it
next;
}
if ($setUdb) {
my $udb = qq[<i:udb xmlns:i="http://indexdata.com/irspy/1.0">irspy-$i</i:udb>];
- $xml =~ s/<\/(e:)?host>/$1$udb/;
+ $xml =~ s/<(e:)?databaseInfo.*?>/$&$udb/;
}
update($conn, $xml);
}
update($conn, $xml);