Revision: 8607 Author: xqt Date: 2010-10-05 04:20:43 +0000 (Tue, 05 Oct 2010)
Log Message: ----------- work-arround for bug #3081100 (do not remove pages of hi-wiki in autonomous mode)
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2010-10-04 20:54:33 UTC (rev 8606) +++ trunk/pywikipedia/interwiki.py 2010-10-05 04:20:43 UTC (rev 8607) @@ -1840,7 +1840,8 @@ rmPage = old[rmsite] #put it to new means don't delete it if not globalvar.cleanup or \ - rmPage.aslink(forceInterwiki=True) not in globalvar.remove: + rmPage.aslink(forceInterwiki=True) not in globalvar.remove or \ + rmPage.site().sitename() == 'wikipedia:hi': #work-arround for bug #3081100 (do not remove hi-pages) new[rmsite] = rmPage pywikibot.output( u"WARNING: %s is either deleted or has a mismatching disambiguation state."
pywikipedia-svn@lists.wikimedia.org