1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add a -fetch-original switch to dopackages that fetches the distfiles from

the listed MASTER_SITES instead of ftp-master.  Pass the FETCH_ORIGINAL
environment variable to pdispatch and as a command-line switch to
portbuild.
This commit is contained in:
Kris Kennaway 2003-05-18 00:04:28 +00:00
parent bb4b811a44
commit d6e37c8332
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81182
3 changed files with 16 additions and 1 deletions

View File

@ -20,7 +20,7 @@ errorexit () {
}
usage () {
echo "usage: [-continue] [-nofinish] [-finish] [-restart] [-ftp] [-cdrom] [-nodummy] [-nobuild] [-noindex] [-noduds] [-nocvsup] [-nocvs] [-noportscvs] [-norestr] [-plistcheck] [-distfiles] branch date"
echo "usage: [-continue] [-nofinish] [-finish] [-restart] [-ftp] [-cdrom] [-nodummy] [-nobuild] [-noindex] [-noduds] [-nocvsup] [-nocvs] [-noportscvs] [-norestr] [-plistcheck] [-distfiles] [-fetch-original] branch date"
errorexit 1
}
@ -205,6 +205,7 @@ cont=0
finish=0
nofinish=0
dodistfiles=0
fetch_orig=0
# optional arguments
while [ $# -gt 2 ]; do
@ -245,6 +246,9 @@ while [ $# -gt 2 ]; do
x-distfiles)
dodistfiles=1
;;
x-fetch-original)
fetch_orig=1
;;
x-continue)
cont=1
;;
@ -301,6 +305,10 @@ if [ "$cdrom" = 1 ]; then
export FOR_CDROM=1
fi
if [ "$fetch_orig" = 1 ]; then
export FETCH_ORIGINAL=1
fi
export DISTDIR=${pb}/${arch}/${branch}/distfiles
export PACKAGES=${pb}/${arch}/${branch}/packages

View File

@ -51,6 +51,9 @@ fi
if [ "x$WANT_DISTFILES" != "x" ]; then
flags="${flags} -distfiles"
fi
if [ "x$FETCH_ORIGINAL" != "x" ]; then
flags="${flags} -fetch-original"
fi
echo "dispatching: ssh -a -t -n root@$1 ${command} ${arch} ${branch} $flags $args at $(date)"
${pb}/scripts/ptimeout.host $timeout ssh -a -t -n root@$1 ${command} ${arch} ${branch} ${flags} $args

View File

@ -86,6 +86,10 @@ if [ "x$1" = "x-distfiles" ]; then
nodistfiles=0
shift
fi
if [ "x$1" = "x-fetch-original" ]; then
export FETCH_ORIGINAL=1
shift
fi
args="$*"
buildenv ${pb} ${arch} ${branch}