|
@@ -263,7 +263,9 @@ setup-vbuilder(){
|
|
|
with_category_main=0
|
|
|
with_category_plus=0
|
|
|
with_category_nonfree=0
|
|
|
+ with_category_test=0
|
|
|
with_category_proposed_updates=0
|
|
|
+ with_category_security=0
|
|
|
}
|
|
|
|
|
|
setup-vbootstrap(){
|
|
@@ -315,7 +317,7 @@ setup-vbootstrap(){
|
|
|
MAJOR_VERSION=$(echo ${VERSION} | sed -e "s/_i[0-9]86//")
|
|
|
|
|
|
## check apt categories
|
|
|
- ## The main category main is unconditionally permited
|
|
|
+ ## "main" category is unconditionally permited
|
|
|
with_category_main=1
|
|
|
for cat in $(echo ${CATEGORIES} | sed -e "s/,/ /"g); do
|
|
|
case $cat in
|
|
@@ -328,13 +330,25 @@ setup-vbootstrap(){
|
|
|
nonfree)
|
|
|
with_category_nonfree=1
|
|
|
;;
|
|
|
+ test)
|
|
|
+ ## "test" category only exists in VineSeed
|
|
|
+ [ "${MAJOR_VERSION}" = "VineSeed" ] || \
|
|
|
+ Msg_NoSuchCategoryExists_$LOCALE ${cat} && exit 1
|
|
|
+ with_category_test=1
|
|
|
+ ;;
|
|
|
proposed-updates)
|
|
|
- ##!! 4.2 has no apt-sourceslist-proposed-updates packages
|
|
|
+ ##!! "proposed-updates" category does not exist in 4.2
|
|
|
[ "${MAJOR_VERSION}" = "4.2" ] && \
|
|
|
Msg_NoSuchCategoryExists_$LOCALE ${cat} && exit 1
|
|
|
|
|
|
with_category_proposed_updates=1
|
|
|
;;
|
|
|
+ security)
|
|
|
+ ## "security" category does not exist in VineSeed
|
|
|
+ [ "${MAJOR_VERSION}" = "VineSeed" ] && \
|
|
|
+ Msg_NoSuchCategoryExists_$LOCALE ${cat} && exit 1
|
|
|
+ with_category_security=1
|
|
|
+ ;;
|
|
|
*)
|
|
|
Msg_NoSuchCategoryExists_$LOCALE ${cat} && exit 1
|
|
|
;;
|
|
@@ -607,6 +621,8 @@ Build(){
|
|
|
case ${MAJOR_VERSION} in
|
|
|
4.2)
|
|
|
$__chroot_sh "sed -i -e 's/main plus updates nonfree *$/$(echo ${CATEGORIES} | sed -e "s/,/ /"g) updates/g' /etc/apt/sources.list"
|
|
|
+ # [ $with_category_security -eq 1 ] && \
|
|
|
+ # echo
|
|
|
;;
|
|
|
@@VBUILDER_STABLE_VERSION@@)
|
|
|
[ $with_category_plus -eq 1 ] && \
|
|
@@ -615,12 +631,16 @@ Build(){
|
|
|
$__chroot_sh 'apt-get -qq update && apt-get -qq -y install apt-sourceslist-nonfree'
|
|
|
[ $with_category_proposed_updates -eq 1 ] && \
|
|
|
$__chroot_sh 'apt-get -qq update && apt-get -qq -y install apt-sourceslist-proposed-updates'
|
|
|
+ # [ $with_category_security -eq 1 ] && \
|
|
|
+ # echo
|
|
|
;;
|
|
|
VineSeed)
|
|
|
[ $with_category_plus -eq 1 ] && \
|
|
|
$__chroot_sh 'apt-get -qq update && apt-get -qq -y install apt-sourceslist-plus'
|
|
|
[ $with_category_nonfree -eq 1 ] && \
|
|
|
$__chroot_sh 'apt-get -qq update && apt-get -qq -y install apt-sourceslist-nonfree'
|
|
|
+ [ $with_category_test -eq 1 ] && \
|
|
|
+ $__chroot_sh 'apt-get -qq update && apt-get -qq -y install apt-sourceslist-test'
|
|
|
;;
|
|
|
esac
|
|
|
|