Undefined variable sometimes (for instance if no index.php has been found).

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@651 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
nemobis 12 years ago
parent 4f0f1160a3
commit 6c68a2f5e8

@ -78,9 +78,9 @@ for wiki in wikis:
prefix = wikidir.split('-wikidump')[0]
finished = False
if started and wikidir and prefix:
if (subprocess.call (['tail -n 1 %s/%s-history.xml | grep -q "</mediawiki>"' % (wikidir, prefix)], shell=True) ):
finished = False
print "No </mediawiki> tag found: dump failed, needs fixing; resume didn't work. Exiting."
else:
finished = True

Loading…
Cancel
Save