Smalyshev has uploaded a new change for review. ( 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(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/rdf refs/changes/18/392718/1 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..0ec1860 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" ]; + 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: newchange Gerrit-Change-Id: Id3a412e85e446f64645d7f253c83d6213ce651ff Gerrit-PatchSet: 1 Gerrit-Project: wikidata/query/rdf Gerrit-Branch: master Gerrit-Owner: Smalyshev <smalys...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits