repo: rename variable ROOTFS_MAIN to REPO_MAIN
This variable blocks the enable of online repositories and activates the enable of RPMS.main repository in iso or rootfs. The old name was misleading.
This commit is contained in:
parent
3a3ebe0b73
commit
3dfe3f9328
@ -1,15 +1,15 @@
|
||||
use/repo:
|
||||
@$(call add_feature)
|
||||
@$(call add,STAGE1_PACKAGES,gnupg)
|
||||
@$(call try,REPO,rsync/alt)
|
||||
@$(call xport,ROOTFS_MAIN)
|
||||
@$(call try,REPO,http/alt)
|
||||
@$(call xport,REPO_MAIN)
|
||||
@$(call xport,REPO)
|
||||
|
||||
use/repo/main:: sub/main use/repo; @:
|
||||
|
||||
ifeq (vm,$(IMAGE_CLASS))
|
||||
use/repo/main::
|
||||
@$(call set,ROOTFS_MAIN,1)
|
||||
@$(call set,REPO_MAIN,1)
|
||||
@$(call add,THE_PACKAGES,apt-repo-tools)
|
||||
endif
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# enable online repos if not use/repo/main
|
||||
|
||||
[ -z "$GLOBAL_ROOTFS_MAIN" ] || exit 0
|
||||
[ -z "$GLOBAL_REPO_MAIN" ] || exit 0
|
||||
|
||||
[ -n "$GLOBAL_REPO" ] || exit 0
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -eu
|
||||
|
||||
[ -n "$GLOBAL_ROOTFS_MAIN" ] || exit 0
|
||||
[ -n "$GLOBAL_REPO_MAIN" ] || exit 0
|
||||
|
||||
mv /ALTLinux /srv/ALT
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
# configure package repository of the image (provided by sub/main);
|
||||
# this script will be run iff both live and repo features are used
|
||||
|
||||
[ -n "$GLOBAL_ROOTFS_MAIN" ] || exit 0
|
||||
[ -n "$GLOBAL_REPO_MAIN" ] || exit 0
|
||||
|
||||
DIR=/etc/apt/sources.list.d
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user