Permalink
Browse files

make gem fetch RPGGEMURL configurable

  • Loading branch information...
1 parent c55ff11 commit 1fd6d24c38ab4e8894a4377dab94ef914ff5249b @josh josh committed Apr 27, 2010
Showing with 6 additions and 2 deletions.
  1. +1 −0 rpg-config.sh
  2. +1 −1 rpg-fetch.sh
  3. +4 −1 rpg-sh-setup.sh
View
@@ -70,4 +70,5 @@ RPGTRACE=$RPGTRACE
RPGSHOWBUILD=$RPGSHOWBUILD
RPGSTALETIME='$RPGSTALETIME'
RPGSPECSURL='$RPGSPECSURL'
+RPGGEMURL='$RPGGEMURL'
CONFIG
View
@@ -41,7 +41,7 @@ else
# Grab the gem with `curl(1)` and write to a temporary file just
# in case something goes wrong during transfer.
- if ! curl --fail -s -L "http://rubygems.org/downloads/${gemfile}" > "${gemfile}+"
+ if ! curl --fail -s -L "$RPGGEMURL/${gemfile}" > "${gemfile}+"
then warn "$package $version not found."
exit 1
fi
View
@@ -433,10 +433,13 @@ test -r "$RPGUSERCONF" && . "$RPGUSERCONF"
# URL to the specs file used to build the package index.
: ${RPGSPECSURL:='http://rubygems.org/specs.4.8.gz'}
+# URL to used to fetch gems.
+: ${RPGGEMURL:='http://rubygems.org/downloads'}
+
# Export all RPG variables.
export RPGLIB RPGBIN RPGMAN
export RPGPATH RPGCACHE RPGPACKS RPGDB RPGINDEX RPGSESSION
-export RPGTRACE RPGSHOWBUILD RPGSTALETIME RPGSPECSURL
+export RPGTRACE RPGSHOWBUILD RPGSTALETIME RPGSPECSURL RPGGEMURL
export RPGSYSCONF RPGUSERCONF
# Setup logging and other stuff like that now that our variables are set.

0 comments on commit 1fd6d24

Please sign in to comment.