https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
Bug ID: 69186 Summary: Option -redirect in "add" mode does not change outcome Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: category.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: CommodoreFabianus@gmx.de Web browser: --- Mobile Platform: ---
The default behaviour is with scripts/category.py when it's adding a category, that redirecting pages are skipped, unless "-redirect" is set.
Currently this option doesn't change things because as described in bug #69185 the content of the redirect target is read but not properly handed to the next stage. Even if that is fixed, the next problem is that it only checks if it's a redirect on load and not on save, where it's throwing it's hand up.
The fix is simply to change the Page instance to the redirect target if the option is set.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 152107 had a related patch set uploaded by XZise: Category.py script handles empty and redirect pages
https://gerrit.wikimedia.org/r/152107
https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 152107 merged by jenkins-bot: Category.py script handles empty and redirect pages
https://gerrit.wikimedia.org/r/152107
https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g
--- Comment #3 from Ricordisamoa ricordisamoa@openmailbox.org --- https://gerrit.wikimedia.org/r/152107 merged, is this fixed?
https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
Fabian CommodoreFabianus@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org