base-chroot: change dependency type if chroot is ready or not.

This commit is contained in:
Juan RP 2012-02-28 20:57:05 +01:00
parent db6ee5b101
commit 30344bc6bd
1 changed files with 32 additions and 26 deletions

View File

@ -13,29 +13,35 @@ long_desc="
noarch=yes
bootstrap=yes
Add_dependency full xbps-triggers
Add_dependency full base-files
Add_dependency full chroot-patch
Add_dependency full chroot-bash
Add_dependency full chroot-grep
Add_dependency full chroot-coreutils
Add_dependency full chroot-diffutils
Add_dependency full chroot-gettext
Add_dependency full chroot-texinfo
Add_dependency full chroot-sed
Add_dependency full chroot-gawk
Add_dependency full chroot-findutils
Add_dependency full chroot-make
Add_dependency full chroot-gzip
Add_dependency full chroot-bzip2
Add_dependency full chroot-file
Add_dependency full chroot-tar
Add_dependency full chroot-m4
Add_dependency full chroot-xz
Add_dependency full chroot-fakeroot
Add_dependency full kernel-libc-headers
Add_dependency full chroot-binutils
Add_dependency full mpfr
Add_dependency full chroot-gcc
Add_dependency full chroot-glibc
Add_dependency full ccache
if [ -n "$IN_CHROOT" ]; then
_deptype="run"
else
_deptype="full"
fi
Add_dependency ${_deptype} xbps-triggers
Add_dependency ${_deptype} base-files
Add_dependency ${_deptype} kernel-libc-headers
Add_dependency ${_deptype} chroot-glibc
Add_dependency ${_deptype} chroot-gcc
Add_dependency ${_deptype} chroot-binutils
Add_dependency ${_deptype} chroot-patch
Add_dependency ${_deptype} chroot-bash
Add_dependency ${_deptype} chroot-grep
Add_dependency ${_deptype} chroot-coreutils
Add_dependency ${_deptype} chroot-diffutils
Add_dependency ${_deptype} chroot-gettext
Add_dependency ${_deptype} chroot-texinfo
Add_dependency ${_deptype} chroot-sed
Add_dependency ${_deptype} chroot-gawk
Add_dependency ${_deptype} chroot-findutils
Add_dependency ${_deptype} chroot-make
Add_dependency ${_deptype} chroot-gzip
Add_dependency ${_deptype} chroot-bzip2
Add_dependency ${_deptype} chroot-file
Add_dependency ${_deptype} chroot-tar
Add_dependency ${_deptype} chroot-m4
Add_dependency ${_deptype} chroot-xz
Add_dependency ${_deptype} chroot-fakeroot
Add_dependency ${_deptype} mpfr
Add_dependency ${_deptype} ccache