Skip to content

Commit cf14c51

Browse files
authored
Merge pull request #3816 from citrus-it/mirror
Add -M build flag to temporarily override mirror for development
2 parents 20b0b65 + fcd63fd commit cf14c51

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/functions.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ process_opts() {
5959
SKIP_CHECKSUM=
6060
EXTRACT_MODE=0
6161
MOG_TEST=
62-
while getopts "bcimPpstf:ha:d:Llr:x" opt; do
62+
while getopts "bcimM:Ppstf:ha:d:Llr:x" opt; do
6363
case $opt in
6464
a)
6565
set_arch "$OPTARG"
@@ -96,6 +96,11 @@ process_opts() {
9696
m)
9797
MOG_TEST=1
9898
;;
99+
M)
100+
logmsg -n "-- Will retrieve files from $OPTARG"
101+
set_mirror "$OPTARG"
102+
set_checksum none
103+
;;
99104
P)
100105
REBASE_PATCHES=1
101106
;;
@@ -139,6 +144,8 @@ show_usage() {
139144
-l : skip pkglint check
140145
-L : skip hardlink target check
141146
-m : re-generate final mog from local.mog (mog test mode)
147+
-M URL : retrieve files from URL instead of OmniOS mirror
148+
-M /PATH : retrieve files from (absolute) PATH instead of OmniOS mirror
142149
-p : output all commands to the screen as well as log file
143150
-P : re-base patches on latest source
144151
-r REPO : specify the IPS repo to use

0 commit comments

Comments
 (0)