summaryrefslogtreecommitdiff
path: root/xib.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-08-29 12:58:30 +0000
committerdavidovski <david@davidovski.xyz>2022-08-29 12:58:30 +0000
commit86d0c0ad3442008872f71a49a4ebf94e9e92a7fe (patch)
tree7cf4f9a6f53df84fd7e8f2ac90788e5c21bd20d7 /xib.sh
parent802ea15444cffbef0f76cb1b5190c6bcdfe2591c (diff)
fixed installing packages
Diffstat (limited to 'xib.sh')
-rwxr-xr-xxib.sh23
1 files changed, 9 insertions, 14 deletions
diff --git a/xib.sh b/xib.sh
index 0f3b676..9c97a74 100755
--- a/xib.sh
+++ b/xib.sh
@@ -4,9 +4,6 @@
[ -f /usr/lib/glyphs.sh ] && . /usr/lib/glyphs.sh
[ -f /usr/lib/xilib.sh ] && . /usr/lib/xilib.sh
-XIPKG_INSTALL=/usr/lib/xipkg/install.sh
-[ -f $XIPKG_INSTALL ] && . $XIPKG_INSTALL
-
xib_dir="/var/lib/xib"
build_profile="/etc/xib_profile.conf"
@@ -137,7 +134,7 @@ package_install () {
get_deps () {
local package=$(get_package_build $1)
[ -d $package ] &&
- sed -rn "s/^.*DEPS=\"(.*)\"/\1/p" $package/$1.xibuild
+ sed -rn "s/^MAKEDEPS=\"(.*)\"/\1/p" $package/$1.xibuild
}
# list dependencies of a list of packages
@@ -191,16 +188,14 @@ xib_single () {
local deps=$(get_deps $name)
local missing=""
- is_meta $package || {
- for dep in $deps; do
- [ -e "$chroot/var/lib/xipkg/installed/$dep" ] || {
- pkgfile=$(get_package_file $dep)
- [ "${#pkgfile}" = "0" ] && missing="$missing $dep"
- printf "${LIGHT_GREEN}+${LIGHT_CYAN}install $dep"
- package_install $dep $(get_package_file $dep) $chroot
- }
- done
- }
+ for dep in $deps; do
+ [ -e "$chroot/var/lib/xipkg/installed/$dep" ] || {
+ pkgfile=$(get_package_file $dep)
+ [ "${#pkgfile}" = "0" ] && missing="$missing $dep"
+ printf "${LIGHT_GREEN}+${LIGHT_CYAN}install $dep"
+ package_install $dep $(get_package_file $dep) $chroot
+ }
+ done
[ "${#missing}" != "0" ] && {
printf "${RED}$name depends on these packages to be build before: ${LIGHT_RED}$missing\n"