Added initial support to install binpkgs to resolve builddeps.
if XBPS_PREFER_BINPKG_DEPS is set in xbps-src.conf, the local binpkg repo in XBPS_PACKAGESDIR will be used to install binpkgs. To use this feature you'll need xbps utils >= 20100114 from head. --HG-- extra : convert_revision : 7317e0e2741997007e81ed478f819c36e4858e5d
This commit is contained in:
parent
c3711c3b7d
commit
3cdafeb9ca
4 changed files with 89 additions and 41 deletions
|
@ -1,5 +1,5 @@
|
|||
#-
|
||||
# Copyright (c) 2008-2009 Juan Romero Pardines.
|
||||
# Copyright (c) 2008-2010 Juan Romero Pardines.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
@ -122,6 +122,30 @@ install_pkg()
|
|||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Installs a pkg by installing a binary package from
|
||||
# repository pool, matching the pkg pattern.
|
||||
#
|
||||
install_pkg_with_binpkg()
|
||||
{
|
||||
local pkgpattern="$1"
|
||||
|
||||
#
|
||||
# Check that installed xbps utils version is recent enough.
|
||||
#
|
||||
instver=$(${XBPS_BIN_CMD} -V)
|
||||
${XBPS_CMPVER_CMD} "${instver}" "20100114"
|
||||
if [ $? -eq 255 ]; then
|
||||
echo -n "Your xbps utilities are too old, "
|
||||
echo "required version: 20100114"
|
||||
return 1
|
||||
fi
|
||||
|
||||
msg_normal "Installing binary pkg: $pkgpattern"
|
||||
$XBPS_BIN_CMD -y install "$pkgpattern"
|
||||
return $?
|
||||
}
|
||||
|
||||
#
|
||||
# Lists files installed by a package.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue