From: Pat Riehecky riehecky@fnal.gov
--- get_sources.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/get_sources.sh b/get_sources.sh index 4cb6c5a..fad8828 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -9,6 +9,7 @@ # # Might want to drop this in ~/bin/ and chmod u+x it
+surl="https://git.centos.org/sources/"
pn=$(basename `pwd`) f=.${pn}.metadata @@ -25,7 +26,7 @@ while read a ; do touch $fname else if [ ! -e ${fname} ]; then - curl https://git.centos.org/sources/$%7Bpn%7D/$%7Bbr%7D/$%7Bfsha%7D -o ${fname} + curl ${surl}/${pn}/${br}/${fsha} -o ${fname} else echo "${fname} exists. skipping" fi