diff options
author | Kefu Chai <kchai@redhat.com> | 2019-02-13 13:25:21 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2019-02-16 19:27:07 +0100 |
commit | 694495f621853bb1e020aa066c5fcf5a67ac3690 (patch) | |
tree | faf535f0f053290d4ddfc82235b198239c6fac00 /install-deps.sh | |
parent | install-deps.sh: extract munge_debian_control() (diff) | |
download | ceph-694495f621853bb1e020aa066c5fcf5a67ac3690.tar.xz ceph-694495f621853bb1e020aa066c5fcf5a67ac3690.zip |
install-deps.sh: selectively enable deps on deb distros
on debian derivatives, only enable required dependencies on demand.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'install-deps.sh')
-rwxr-xr-x | install-deps.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/install-deps.sh b/install-deps.sh index 49e21871829..a1c83e387bd 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -44,14 +44,18 @@ function munge_ceph_spec_in { function munge_debian_control { local version=$1 shift - local control=$1 + local for_make_check=$1 shift + local control=$1 case "$version" in *squeeze*|*wheezy*) control="/tmp/control.$$" grep -v babeltrace debian/control > $control ;; esac + if $for_make_check; then + sed -i 's/^# Make-Check[[:space:]]/ /g' $control + fi echo $control } @@ -247,6 +251,15 @@ if [ x$(uname)x = xFreeBSDx ]; then exit else + for_make_check=false + if tty -s; then + # interactive + for_make_check=true + elif [ $FOR_MAKE_CHECK ]; then + for_make_check=true + else + for_make_check=false + fi source /etc/os-release case $ID in debian|ubuntu|devuan) @@ -275,7 +288,7 @@ else touch $DIR/status backports="" - control=$(munge_debian_control "$VERSION" "debian/control") + control=$(munge_debian_control "$VERSION" "$for_make_check" "debian/control") case "$VERSION" in *squeeze*|*wheezy*) backports="-t $codename-backports" |