deps.sh revision 3ce85a5f5264e7118beb6524e120fd8b53a13da4
#
# Dependency management.
#
# Copyright (C) 2014 Red Hat
#
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if [ -z ${_DEPS_SH+set} ]; then
# Dependency list
)
# True, if all test dependencies are satisfied by the package list
if [[ "$DISTRO_BRANCH" == -redhat-* ]]; then
DEPS_LIST+=(
)
-e 's/@PACKAGE_NAME@/package-name/g' \
DEPS_TESTS_SATISFIED=false
fi
fi
if [[ "$DISTRO_BRANCH" == -debian-* ]]; then
DEPS_LIST+=(
)
fi
# Install dependencies.
function deps_install()
{
distro_pkg_install "${DEPS_LIST[@]}"
}
# Remove dependencies.
function deps_remove()
{
distro_pkg_remove "${DEPS_LIST[@]}"
}
fi # _DEPS_SH