jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/392718 )

Change subject: Allow specifying namespace for category load
......................................................................


Allow specifying namespace for category load

Change-Id: Id3a412e85e446f64645d7f253c83d6213ce651ff
---
M dist/src/script/forAllCategoryWikis.sh
M dist/src/script/loadCategoryDump.sh
2 files changed, 7 insertions(+), 2 deletions(-)

Approvals:
  Smalyshev: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/dist/src/script/forAllCategoryWikis.sh 
b/dist/src/script/forAllCategoryWikis.sh
index 1f4521e..7364691 100755
--- a/dist/src/script/forAllCategoryWikis.sh
+++ b/dist/src/script/forAllCategoryWikis.sh
@@ -9,7 +9,8 @@
        fetch="curl -s -XGET"
 fi
 
+shift
 $fetch $DUMP_LIST | while read wiki; do
        echo "Processing $wiki..."
-       $DIR/$COMMAND $wiki
+       $DIR/$COMMAND $wiki "$@"
 done 
diff --git a/dist/src/script/loadCategoryDump.sh 
b/dist/src/script/loadCategoryDump.sh
index e3e2aa1..6431143 100755
--- a/dist/src/script/loadCategoryDump.sh
+++ b/dist/src/script/loadCategoryDump.sh
@@ -10,6 +10,10 @@
 NAMESPACE=categories
 WIKI=$1
 
+if [ "x$2" != "x" ]; then
+       NAMESPACE=$2
+fi
+
 if [ -z "$WIKI" ]; then
        echo "Use: $0 WIKI-NAME"
        exit 1
@@ -17,7 +21,7 @@
 
 TS=$(curl -s -f -XGET $SOURCE/lastdump/$WIKI-categories.last | cut -c1-8)
 if [ -z "$TS" ]; then
-       echo "Could not load timestamp"
+       echo "Could not load timestamp from 
$SOURCE/lastdump/$WIKI-categories.last"
        exit 1
 fi
 FILENAME=$WIKI-$TS-categories.ttl.gz

-- 
To view, visit https://gerrit.wikimedia.org/r/392718
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id3a412e85e446f64645d7f253c83d6213ce651ff
Gerrit-PatchSet: 2
Gerrit-Project: wikidata/query/rdf
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <smalys...@wikimedia.org>
Gerrit-Reviewer: Smalyshev <smalys...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to