Commit 41db9a3f authored by Cyril Brulebois's avatar Cyril Brulebois
Browse files

Add support for a Provides parameter to the install_fake_package() function.

It it's not specified, the Provides field gets an empty string and is
not included in the resulting binary.
parent 0fd5a638
...@@ -36,10 +36,11 @@ ensure_hook_dependency_is_installed() { ...@@ -36,10 +36,11 @@ ensure_hook_dependency_is_installed() {
} }
install_fake_package() { install_fake_package() {
local name version section tmp control_file local name version section provides tmp control_file
name="${1}" name="${1}"
version="${2}" version="${2}"
section="${3:-misc}" section="${3:-misc}"
provides="${4:-}"
ensure_hook_dependency_is_installed equivs ensure_hook_dependency_is_installed equivs
tmp="$(mktemp -d)" tmp="$(mktemp -d)"
control_file="${tmp}/${name}_${version}.control" control_file="${tmp}/${name}_${version}.control"
...@@ -53,6 +54,7 @@ Package: ${name} ...@@ -53,6 +54,7 @@ Package: ${name}
Version: ${version} Version: ${version}
Maintainer: Tails developers <tails@boum.org> Maintainer: Tails developers <tails@boum.org>
Architecture: all Architecture: all
Provides: ${provides}
Description: (Fake) ${name} Description: (Fake) ${name}
Dummy packaged used to meet some dependency without installing the Dummy packaged used to meet some dependency without installing the
real ${name} package. real ${name} package.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment