Skip to content

Commit

Permalink
Merge pull request #3816 from citrus-it/mirror
Browse files Browse the repository at this point in the history
Add -M build flag to temporarily override mirror for development
  • Loading branch information
hadfl authored Jan 22, 2025
2 parents 20b0b65 + fcd63fd commit cf14c51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ process_opts() {
SKIP_CHECKSUM=
EXTRACT_MODE=0
MOG_TEST=
while getopts "bcimPpstf:ha:d:Llr:x" opt; do
while getopts "bcimM:Ppstf:ha:d:Llr:x" opt; do
case $opt in
a)
set_arch "$OPTARG"
Expand Down Expand Up @@ -96,6 +96,11 @@ process_opts() {
m)
MOG_TEST=1
;;
M)
logmsg -n "-- Will retrieve files from $OPTARG"
set_mirror "$OPTARG"
set_checksum none
;;
P)
REBASE_PATCHES=1
;;
Expand Down Expand Up @@ -139,6 +144,8 @@ show_usage() {
-l : skip pkglint check
-L : skip hardlink target check
-m : re-generate final mog from local.mog (mog test mode)
-M URL : retrieve files from URL instead of OmniOS mirror
-M /PATH : retrieve files from (absolute) PATH instead of OmniOS mirror
-p : output all commands to the screen as well as log file
-P : re-base patches on latest source
-r REPO : specify the IPS repo to use
Expand Down

0 comments on commit cf14c51

Please sign in to comment.