Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F35253442
0001-Fix-regression-for-interwiki-script.patch
winterheart
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
winterheart
Jun 19 2022, 3:09 PM
2022-06-19 15:09:52 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
0001-Fix-regression-for-interwiki-script.patch
View Options
From 2222258adf11ad1cccc4efa38b9c84dd6bc54a37 Mon Sep 17 00:00:00 2001
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
Date: Sun, 19 Jun 2022 18:01:57 +0300
Subject: [PATCH] Fix regression for interwiki script
Commit 0a5f9135 introduces regression where interwiki script removes all
interwiki links instead adding/replacing ones.
---
scripts/interwiki.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index e217308bc..76e75adbc 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -1224,7 +1224,7 @@ class Subject(interwiki_graph.Subject):
break
if not self.skipPage(page, linkedPage, counter) \
- and self.conf.followinterwiki or page == self.origin \
+ and (self.conf.followinterwiki or page == self.origin) \
and self.addIfNew(linkedPage, counter, page):
# It is new. Also verify whether it is the second on the
# same site
--
2.35.1
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9532001
Default Alt Text
0001-Fix-regression-for-interwiki-script.patch (1 KB)
Attached To
Mode
T310964: Fix regression for interwiki script
Attached
Detach File
Event Timeline
Log In to Comment