File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ VERSION=0.0.0
33
44CFG_CMDLINE=
55CFG_CROSS=
6+ CFG_REPO=
67CROSS_ARCH=
78DISTDIR=
89MASTERDIR=
@@ -14,14 +15,14 @@ RCV=`command -v xbps-checkvers 2>/dev/null`
1415RCV_F=" repo-checkvers.txt"
1516TOBUILD=
1617_TOBUILD=
17- USAGE=" Usage: $0 [-a cross-arch] [-CN] [-d|-m|-h dir]"
18+ USAGE=" Usage: $0 [-a cross-arch] [-CN] [-R repo] [- d|-m|-h dir]"
1819
1920[ -f $RCV ] || {
2021 printf " ERROR: The 'xbps-checkvers' was not found in the PATH.\n"
2122 exit 1
2223}
2324
24- while getopts a:Cc:d:Nm:th:v OPT; do
25+ while getopts a:Cc:d:Nm:th:vR: OPT; do
2526 case " $OPT " in
2627 a)
2728 CFG_CROSS=" -a $OPTARG "
@@ -73,6 +74,9 @@ while getopts a:Cc:d:Nm:th:v OPT; do
7374 }
7475 HOSTDIR=" $OPTARG "
7576 ;;
77+ R)
78+ CFG_REPO=" -R $OPTARG "
79+ ;;
7680 \? )
7781 printf " %s\n" " $USAGE "
7882 exit 1
@@ -95,7 +99,7 @@ if [ -n "$CFG_CROSS" ]; then
9599 export XBPS_TARGET_ARCH=$CROSS_ARCH
96100fi
97101
98- RCV_CMD_LINE=" $RCV --distdir=${DISTDIR} ${* } "
102+ RCV_CMD_LINE=" $RCV $CFG_REPO --distdir=${DISTDIR} ${* } "
99103printf " INFO: Getting list of updates, please wait...\n"
100104printf " INFO: Running '$RCV_CMD_LINE ' (${CROSS_ARCH:- native} ) ...\n"
101105
You can’t perform that action at this time.
0 commit comments